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>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commitf5227c50b7396be373103a1861cd70e9bb8c81cd
tree411ac3607bfa7185d4565f3fe564c56c85bf15ea
parent16772e43ef5a71156a2a599ea81595edf40ace34
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