[FFmpeg-devel] [PATCH] Flushing the MP2 Decoder
Fri Jan 11 09:09:20 CET 2008
Brian Brice wrote:
> 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.
Patch looks ok and makes sense , though I'm not the maintainer.
More information about the ffmpeg-devel