Commit 425d0888 authored by Piotr Bandurski's avatar Piotr Bandurski Committed by Michael Niedermayer

bfi: signal EOF

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8e695796
......@@ -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... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment