summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-05 22:32:20 +0100
committerMans Rullgard <mans@mansr.com>2012-08-06 10:20:42 +0100
commitbc90230b98e5194fd5bb629a409a50a3ec3b648b (patch)
tree125ec9954cee2056e395382c19e1808869eddd18 /libavcodec/imc.c
parent2b6804328e24dde539ada027fada8bfb70eedcf8 (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>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r--libavcodec/imc.c2
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++)