[FFmpeg-devel] [PATCH] Flushing the MP2 Decoder

Benjamin Larsson banan
Fri Jan 11 09:09:20 CET 2008

Brian Brice wrote:
> Hello,
> I believe I've found an issue with seeking relating to the MP2
> decoder.  It's most notable in the scenario that you've been decoding
> frames that have sound, seek to an area of silence, then continue
> decoding.  After the seek, the first frame returned from the decoder
> has a blip of sound from the previous audio.
> Currently, there isn't a flush implementation for the MP2 decoder.  In
> researching what exactly needs to be flushed, I've noticed some fields
> in MPADecodeContext that were previously set, causing the blip.
> I've attached my implementation of a flush function for the MP2 decoder.
> Thanks!

Patch looks ok and makes sense , though I'm not the maintainer.

Benjamin Larsson

More information about the ffmpeg-devel mailing list