bfi: signal EOF

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/8/head
Piotr Bandurski 12 years ago committed by Michael Niedermayer
parent 8e6957964e
commit 425d0888c3
  1. 2
      libavformat/bfi.c

@ -113,7 +113,7 @@ static int bfi_read_packet(AVFormatContext * s, AVPacket * pkt)
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
int ret, audio_offset, video_offset, chunk_size, audio_size = 0; int ret, audio_offset, video_offset, chunk_size, audio_size = 0;
if (bfi->nframes == 0 || url_feof(pb)) { if (bfi->nframes == 0 || url_feof(pb)) {
return AVERROR(EIO); return AVERROR_EOF;
} }
/* If all previous chunks were completely read, then find a new one... */ /* If all previous chunks were completely read, then find a new one... */

Loading…
Cancel
Save