avcodec/h264addpx_template: Fixes integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jan 2018 02:48:43 +0000 (03:48 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 20:50:34 +0000 (21:50 +0100)
commitd6945aeee419a8417b8019c7c92227e12e45b7ad
treedac578e9c4916eac2759ebdd57faf3da53ee5368
parent0e62a2373475f58c72c0faf5568be00b26909585
avcodec/h264addpx_template: Fixes integer overflows

Fixes: signed integer overflow: 512 + 2147483491 cannot be represented in type 'int'
Fixes: 4780/clusterfuzz-testcase-minimized-4709066174627840

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