diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-06 01:32:20 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-08-06 13:20:42 +0400 |
commit | bc90230b98e5194fd5bb629a409a50a3ec3b648b (patch) | |
tree | 125ec9954cee2056e395382c19e1808869eddd18 | |
parent | 2b6804328e24dde539ada027fada8bfb70eedcf8 (diff) |
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>
-rw-r--r-- | libavcodec/imc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 297efbb5c7..8ee8e72fec 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -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++) |