[FFmpeg-devel] [PATCH] bfi: signal EOF

Michael Niedermayer michaelni at gmx.at
Wed Nov 21 23:19:28 CET 2012


On Wed, Nov 21, 2012 at 04:57:50PM +0100, Piotr Bandurski wrote:
> diff --git a/libavformat/bfi.c b/libavformat/bfi.c
> index 0f0ec00..d26d848 100644
> --- a/libavformat/bfi.c
> +++ b/libavformat/bfi.c
> @@ -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;
>      }

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121121/52f11ed7/attachment.asc>


More information about the ffmpeg-devel mailing list