avcodec/ilbcdec: Simplify use of unsigned and fix more undefined overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 21:28:13 +0000 (23:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 09:52:25 +0000 (11:52 +0200)
commit7654e5aa3b6e57f6cf161531af340ae41929fa70
tree6b43547846494da42d3c7b61e9d3bcd090706461
parent6ddb253f79677e2e0594715b1b91720606b0e331
avcodec/ilbcdec: Simplify use of unsigned and fix more undefined overflows

Fixes: signed integer overflow: 2147475672 + 8192 cannot be represented in type 'int'
Fixes: 15415/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5712074128228352

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 019d729039aaa164152035864d65d77e53df1c98)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ilbcdec.c