aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-19 03:14:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-19 03:14:50 +0100
commitf144e4ddff11a1f355d2f9381cad04c66dbf55d1 (patch)
tree87b3bcdd1d82694a393955431413dee67a48cadc
parent9d88be68733be940651d0ee16df257f73d43023d (diff)
downloadffmpeg-f144e4ddff11a1f355d2f9381cad04c66dbf55d1.tar.gz
avcodec/wmalosslessdec: use sizeof() instead of a literal number
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/wmalosslessdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index c9bcc2683a..fcadbc034b 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -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;
}