Commit 3187277e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmalosslessdec: Fix memset sizeof

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 52623ef7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment