[FFmpeg-devel] [PATCH] correctly return EOF for smacker videos
Kostya
kostya.shishkov
Thu Jun 24 06:53:54 CEST 2010
On Wed, Jun 23, 2010 at 10:23:08PM -0400, Alexei Svitkine wrote:
> Attached patch makes ffplay -autoexit work correctly when playing
> smacker videos.
>
> -Alexei
looks ok
> Index: libavformat/smacker.c
> ===================================================================
> --- libavformat/smacker.c (revision 23746)
> +++ libavformat/smacker.c (working copy)
> @@ -236,7 +236,7 @@
> int pos;
>
> if (url_feof(s->pb) || smk->cur_frame >= smk->frames)
> - return AVERROR(EIO);
> + return AVERROR_EOF;
>
> /* if we demuxed all streams, pass another frame */
> if(smk->curstream < 0) {
More information about the ffmpeg-devel
mailing list