[FFmpeg-cvslog] takdec: silence/fix warning for undefined behavior
Paul B Mahol
git at videolan.org
Mon Dec 10 13:08:37 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 10 12:04:02 2012 +0000| [4c7515286b26060565ab4e9d9b3c06ae7d545a8b] | committer: Paul B Mahol
takdec: silence/fix warning for undefined behavior
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c7515286b26060565ab4e9d9b3c06ae7d545a8b
---
libavcodec/takdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list