bfi: signal EOF
authorPiotr Bandurski <ami_stuff@o2.pl>
Wed, 21 Nov 2012 15:57:50 +0000 (16:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Nov 2012 22:22:38 +0000 (23:22 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bfi.c

index 0f0ec00..d26d848 100644 (file)
@@ -113,7 +113,7 @@ static int bfi_read_packet(AVFormatContext * s, AVPacket * pkt)
     AVIOContext *pb = s->pb;
     int ret, audio_offset, video_offset, chunk_size, audio_size = 0;
     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... */