Browse Source

imc: fix size of a memset()

IMCContext was changed from an array to a pointer in 66b84e4,
but this memset() was not updated.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n1.0
Mans Rullgard 13 years ago
parent
commit
bc90230b98
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/imc.c

+ 1
- 1
libavcodec/imc.c View File

@@ -789,7 +789,7 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
chctx->decoder_reset = 1;

if (chctx->decoder_reset) {
memset(q->out_samples, 0, sizeof(q->out_samples));
memset(q->out_samples, 0, COEFFS * sizeof(*q->out_samples));
for (i = 0; i < BANDS; i++)
chctx->old_floor[i] = 1.0;
for (i = 0; i < COEFFS; i++)


Loading…
Cancel
Save