Commit f144e4dd authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmalosslessdec: use sizeof() instead of a literal number

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9d88be68
......@@ -700,9 +700,9 @@ static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int input)
recent--;
else {
memcpy(s->cdlms[ich][ilms].lms_prevvalues + order,
s->cdlms[ich][ilms].lms_prevvalues, 2 * order);
s->cdlms[ich][ilms].lms_prevvalues, sizeof(*s->cdlms[ich][ilms].lms_prevvalues) * order);
memcpy(s->cdlms[ich][ilms].lms_updates + order,
s->cdlms[ich][ilms].lms_updates, 2 * order);
s->cdlms[ich][ilms].lms_updates, sizeof(*s->cdlms[ich][ilms].lms_updates) * order);
recent = order - 1;
}
......
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