Lines Matching refs:bfi
53 BFIContext *bfi = s->priv_data; in bfi_read_header() local
75 bfi->nframes = avio_rl32(pb); in bfi_read_header()
76 if (bfi->nframes < 0) in bfi_read_header()
104 vstream->duration = bfi->nframes; in bfi_read_header()
122 BFIContext *bfi = s->priv_data; in bfi_read_packet() local
125 if (bfi->nframes == 0 || avio_feof(pb)) { in bfi_read_packet()
130 if (!bfi->avflag) { in bfi_read_packet()
144 bfi->video_size = chunk_size - video_offset; in bfi_read_packet()
145 if (audio_size < 0 || bfi->video_size < 0) { in bfi_read_packet()
155 pkt->pts = bfi->audio_frame; in bfi_read_packet()
156 bfi->audio_frame += ret; in bfi_read_packet()
157 } else if (bfi->video_size > 0) { in bfi_read_packet()
160 ret = av_get_packet(pb, pkt, bfi->video_size); in bfi_read_packet()
164 pkt->pts = bfi->video_frame; in bfi_read_packet()
165 bfi->video_frame += ret / bfi->video_size; in bfi_read_packet()
168 bfi->nframes--; in bfi_read_packet()
174 bfi->avflag = !bfi->avflag; in bfi_read_packet()
175 pkt->stream_index = bfi->avflag; in bfi_read_packet()