[FFmpeg-devel] [PATCH] Make vsrc_movie flush decoder frames on EOF.

Steven Robertson steven at strobe.cc
Sat Jul 7 07:48:09 CEST 2012


Eep, sorry, that change broke looping when using ffh264 to decode.
This new patch adds an explicit flushing state, which prevents looping
and flushing from interfering with each other, although it does end up
touching more of the file.

On Fri, Jul 6, 2012 at 9:41 PM, Steven Robertson <steven at strobe.cc> wrote:
> Hi all,
>
> I found a small bug in vsrc_movie, causing it to cut off early for
> some inputs. Patch attached. From the commit message:
>
> vsrc_movie currently forwards EOF (or begins looping) immediately upon
> reaching the last packet in the input stream, which can leave frames
> in the decoder.  This change first tries to read any remaining packets
> from
> the decoder before forwarding EOF.
>
> Thanks!
> Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-vsrc_movie-flush-decoder-frames-on-EOF.patch
Type: application/octet-stream
Size: 4486 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120706/0120f3bc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Indentation-fix-for-previous-patch.patch
Type: application/octet-stream
Size: 2262 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120706/0120f3bc/attachment-0001.obj>


More information about the ffmpeg-devel mailing list