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>
Mon, 11 Sep 2017 11:28:41 +0000 (13:28 +0200)
commita295d1870a8cc98e397ec51458ef5ed514ee7ee2
treee646d05818f471d48f0ba24f71f63a55d8d1fe29
parentb590758298cc6f7bac710ebaecb99a4de878c7f8
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