[FFmpeg-cvslog] imc: fix size of a memset()

Mans Rullgard git at videolan.org
Mon Aug 6 22:29:39 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Aug  5 22:32:20 2012 +0100| [bc90230b98e5194fd5bb629a409a50a3ec3b648b] | committer: Mans Rullgard

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 at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc90230b98e5194fd5bb629a409a50a3ec3b648b
---

 libavcodec/imc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 297efbb..8ee8e72 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++)



More information about the ffmpeg-cvslog mailing list