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 22:19:15 +0000 (23:19 +0100)
commita9fb75893bc7b8033f629b336e30ec06b819fd0e
tree8a3cf9112fa3daf6ecf45aeeef876489e9d5d65b
parentc28752f03a9ea7d37099f6b36f121a355e608f82
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