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 13:57:27 +0000 (15:57 +0200)
commit96d5786027445bf01ab47212a1a71b9d2f2ea2df
treeb89f4961bb40ee1cc21bddd63d9d262c18f55d07
parent1b5548cc0913032587b4579e4b8b23ebed4c5124
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