Lines Matching defs:pb
63 ByteIOContext *pb = s->pb;
70 url_fseek(pb, 5, SEEK_CUR);
71 vid->nframes = get_le16(pb);
79 stream->codec->width = get_le16(pb);
80 stream->codec->height = get_le16(pb);
82 vid->bethsoft_global_delay = get_le16(pb);
83 get_le16(pb);
100 static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt,
115 position = url_ftell(pb) - 1;
120 vid->video_pts += vid->bethsoft_global_delay + get_le16(pb);
124 if(get_buffer(pb, &vidbuf_start[vidbuf_nbytes], 2) != 2)
134 code = get_byte(pb);
139 vidbuf_start[vidbuf_nbytes++] = get_byte(pb);
141 if(get_buffer(pb, &vidbuf_start[vidbuf_nbytes], code) != code)
148 if(get_byte(pb))
149 url_fseek(pb, -1, SEEK_CUR);
177 ByteIOContext *pb = s->pb;
182 if(vid->is_finished || url_feof(pb))
185 block_type = get_byte(pb);
188 url_fseek(pb, -1, SEEK_CUR); // include block type
189 ret_value = av_get_packet(pb, pkt, 3 * 256 + 1);
198 get_le16(pb);
200 s->streams[1]->codec->sample_rate = 1000000 / (256 - get_byte(pb));
203 audio_length = get_le16(pb);
204 ret_value = av_get_packet(pb, pkt, audio_length);
211 return read_frame(vid, pb, pkt, block_type, s,