avcodec/ffv1dec_template: Fix signed integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jul 2017 00:08:50 +0000 (02:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jul 2017 00:09:43 +0000 (02:09 +0200)
commit4de4308d2aa3bfaa286ab566caf087d523cf9a85
treed37e61a819788fec0cc7f6b751126de5fd90f0c3
parent0ef8f03133a0bd83c74200a8cf30982c0f574016
avcodec/ffv1dec_template: Fix signed integer overflow

Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 2634/clusterfuzz-testcase-minimized-4540890636877824

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