avcodec/wmalosslessdec: Fix memset sizeof
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 May 2016 16:29:02 +0000 (18:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 May 2016 16:44:06 +0000 (18:44 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmalosslessdec.c

index f14e8a6..3e80c47 100644 (file)
@@ -717,7 +717,7 @@ static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int input)
     s->cdlms[ich][ilms].lms_updates[recent + (order >> 3)] >>= 1;
     s->cdlms[ich][ilms].recent = recent;
     memset(s->cdlms[ich][ilms].lms_updates + recent + order, 0,
-           sizeof(s->cdlms[ich][ilms].lms_updates) - 4*(recent+order));
+           sizeof(s->cdlms[ich][ilms].lms_updates) - sizeof(int16_t)*(recent+order));
 }
 
 static void use_high_update_speed(WmallDecodeCtx *s, int ich)