From 6d4deecfdf0fe18d1a4b06aac49cabcdb9a25d3c Mon Sep 17 00:00:00 2001 From: Mashiat Sarker Shakkhar Date: Thu, 8 Dec 2011 22:52:16 +0600 Subject: [PATCH] Pass pointer to integer buffer instead of integer to memcpy --- libavcodec/wmalosslessdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 1c2056b2cc..b108807929 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -834,10 +834,10 @@ static void mclms_update(WmallDecodeCtx *s, int icoef) } if (s->mclms_recent == 0) { - memcpy(s->mclms_prevvalues[order * num_channels], + memcpy(&s->mclms_prevvalues[order * num_channels], s->mclms_prevvalues, bps * order * num_channels); - memcpy(s->mclms_updates[order * num_channels], + memcpy(&s->mclms_updates[order * num_channels], s->mclms_updates, bps * order * num_channels); s->mclms_recent = num_channels * order;