diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-05-02 21:52:25 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-05-02 21:52:25 +0000 |
commit | 1302ccc1a771d6e713a28fbbf70fc6cd6ae93b07 (patch) | |
tree | 2988d63ca185ea2bb0c8d80ed22ece83abd77992 | |
parent | 121d78d00c51a9e600fb003120380594f389ce28 (diff) | |
download | ffmpeg-1302ccc1a771d6e713a28fbbf70fc6cd6ae93b07.tar.gz |
Another buffer overflow, fixes issue1758.
Originally committed as revision 23011 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/wmavoice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 088a6d3463..4ec17eb4f6 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -697,7 +697,7 @@ static void wiener_denoise(WMAVoiceContext *s, int fcb_type, ff_rdft_calc(&s->rdft, coeffs); synth_pf[0] *= coeffs[0]; synth_pf[1] *= coeffs[1]; - for (n = 1; n < 128; n++) { + for (n = 1; n < 64; n++) { float v1 = synth_pf[n * 2], v2 = synth_pf[n * 2 + 1]; synth_pf[n * 2] = v1 * coeffs[n * 2] - v2 * coeffs[n * 2 + 1]; synth_pf[n * 2 + 1] = v2 * coeffs[n * 2] + v1 * coeffs[n * 2 + 1]; |