[FFmpeg-cvslog] r23011 - trunk/libavcodec/wmavoice.c
rbultje
subversion
Sun May 2 23:52:26 CEST 2010
Author: rbultje
Date: Sun May 2 23:52:25 2010
New Revision: 23011
Log:
Another buffer overflow, fixes issue1758.
Modified:
trunk/libavcodec/wmavoice.c
Modified: trunk/libavcodec/wmavoice.c
==============================================================================
--- trunk/libavcodec/wmavoice.c Sun May 2 20:59:15 2010 (r23010)
+++ trunk/libavcodec/wmavoice.c Sun May 2 23:52:25 2010 (r23011)
@@ -697,7 +697,7 @@ static void wiener_denoise(WMAVoiceConte
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];
More information about the ffmpeg-cvslog
mailing list