Browse Source

Another buffer overflow, fixes issue1758.

Originally committed as revision 23011 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ronald S. Bultje 16 years ago
parent
commit
1302ccc1a7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wmavoice.c

+ 1
- 1
libavcodec/wmavoice.c View File

@@ -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];


Loading…
Cancel
Save