avcodec/diracdec: Fix overflow in DC computation
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:32:50 +0000 (01:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commitf3c3cd5afbacf99f14cdcafd6d5dffceb6d06626
tree6ccbd0623cb45901e6b3c26360464a0d52e80079
parent256ebf8bb4146d51da7d0cf1205c597627af1b04
avcodec/diracdec: Fix overflow in DC computation

Fixes: runtime error: signed integer overflow: 11896 + 2147483646 cannot be represented in type 'int'
Fixes: 3053/clusterfuzz-testcase-minimized-6355082062856192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b5995856a4236c27f231210bb08d70688e045192)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c