mpegaudiodec: Prevent premature clipping of mp3 input buffer.
authorDale Curtis <dalecurtis@chromium.org>
Fri, 24 Feb 2012 18:17:39 +0000 (13:17 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 24 Feb 2012 18:47:04 +0000 (13:47 -0500)
commitb7165426917f91ebcad84bdff366824f03b32bfe
treea8a98a66365b8d2c077e20dc19bfec21e2fcd9da
parent655b24c01cea2af7e56ac4ffe3d6fdc475223bcc
mpegaudiodec: Prevent premature clipping of mp3 input buffer.

Instead of clipping extrasize based on EXTRABYTES, clip based on the
amount of buffer actually left. Without this fix, there are warbles
and other distortions in the test case below.

http://kevincennis.com/mix/assets/sounds/1901_voxfx.mp3
libavcodec/mpegaudiodec.c