aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-04 17:01:53 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-09-05 15:50:01 -0400
commitef8740d8e58dc45950887305307206d27ad413fb (patch)
treebdbdda2140b2625058ddf8b9547ce55edbee7a52
parent342bca7f02fc7c0e9c4adf43d0ab1fab31aac85b (diff)
downloadffmpeg-ef8740d8e58dc45950887305307206d27ad413fb.tar.gz
vp9: fix type of iadst4_1d intermediates.
Fixes integer overflows for extreme coefficient values in 10/12bpp content.
-rw-r--r--libavcodec/vp9dsp_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9dsp_template.c b/libavcodec/vp9dsp_template.c
index 9395a0c202..4d810fec3a 100644
--- a/libavcodec/vp9dsp_template.c
+++ b/libavcodec/vp9dsp_template.c
@@ -1186,7 +1186,7 @@ static av_always_inline void idct4_1d(const dctcoef *in, ptrdiff_t stride,
static av_always_inline void iadst4_1d(const dctcoef *in, ptrdiff_t stride,
dctcoef *out, int pass)
{
- int t0, t1, t2, t3;
+ dctint t0, t1, t2, t3;
t0 = 5283 * IN(0) + 15212 * IN(2) + 9929 * IN(3);
t1 = 9929 * IN(0) - 5283 * IN(2) - 15212 * IN(3);