Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-01 19:29:02 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-01 19:44:06 +0300
commit3187277ebb7f41621def2781e749ba709a509ef4 (patch)
treed99e6c0937109e2551404fa100d69e2af031f763 /libavcodec/wmalosslessdec.c
parent52623ef78546ac240cf28fe8be9dba9545911709 (diff)
avcodec/wmalosslessdec: Fix memset sizeof
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r--libavcodec/wmalosslessdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index f14e8a62f7..3e80c4714a 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -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)