avcodec/diracdec: Fix integer overflow with quant
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jan 2018 19:43:24 +0000 (20:43 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 20:50:12 +0000 (21:50 +0100)
commiteaa93175895568ef6c2542b13104874907d9c4ef
tree0f2547bfcfdbbe5979f8f4a85eba28b1b40b62fb
parent1bcd7fefcb3c1ec47978fdc64a9e8dfb9512ae62
avcodec/diracdec: Fix integer overflow with quant

Fixes: signed integer overflow: 2 + 2147483646 cannot be represented in type 'int'
Fixes: 4792/clusterfuzz-testcase-minimized-6322450775146496

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