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 13:26:37 +0000 (15:26 +0200)
commit064d0c64628216b06ff96a0ddea494dfb09b0535
tree8dfb89c0959417d637b3288fc80db1850ecd3cd7
parent9ce4350c48d508b1881d2038a4e2764dde514d54
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