summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/takdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index ff3fbfb..86c1a7d 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -668,7 +668,8 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
s->residues[i ] * s->filter[0];
}
- *p1++ = (av_clip(v >> 10, -8192, 8191) << dshift) - *p1;
+ v = (av_clip(v >> 10, -8192, 8191) << dshift) - *p1;
+ *p1++ = v;
}
memcpy(s->residues, &s->residues[tmp], 2 * filter_order);
OpenPOWER on IntegriCloud