summaryrefslogtreecommitdiff
path: root/libavcodec/takdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/takdec.c')
-rw-r--r--libavcodec/takdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index ff3fbfb07c..86c1a7dda5 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);