Pass pointer to integer buffer instead of integer to memcpy
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Thu, 8 Dec 2011 16:52:16 +0000 (22:52 +0600)
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Thu, 8 Dec 2011 16:53:36 +0000 (22:53 +0600)
libavcodec/wmalosslessdec.c

index 1c2056b..b108807 100644 (file)
@@ -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;