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, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commitb4d9605c67181f107b23fe38419e9120eee70823
treeffe3241308bc7e5b053a3d1e111760f04ca700c2
parentc17cc8ee4ffb2f1c876697df418f51e1f569512b
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>
(cherry picked from commit eaa93175895568ef6c2542b13104874907d9c4ef)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c