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>
Wed, 19 Jul 2017 01:54:53 +0000 (03:54 +0200)
commit13c0467c492306c0ce17ebe4acabcfeb2e20b032
tree778f41ecd76ce42be8e95db9b31ae6cb43ee75f7
parent3abe6554c1ebedbf4c69a0072fe8294036bfc833
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>
(cherry picked from commit 4de4308d2aa3bfaa286ab566caf087d523cf9a85)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffv1dec_template.c