avcodec/fic: Fixes signed integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Aug 2017 16:24:37 +0000 (18:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commit98cd9cd4c29c6b5cfdbd982a9b0a0ee5ce4bc503
treefee6c1c33fe549d1a1e8ac69c91530b7b9ad0ac2
parentbd09e3b19c71d06fa333d27740668119361841e2
avcodec/fic: Fixes signed integer overflow

Fixes: runtime error: signed integer overflow: 1037142357 + 1227025305 cannot be represented in type 'int'
Fixes: 3024/clusterfuzz-testcase-minimized-5885660323905536

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 0c9d5b015c2022e8deebb93367f8ee8a8eb779e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/fic.c