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 08:00:41 +0000 (10:00 +0200)
commit019d729039aaa164152035864d65d77e53df1c98
tree923fd9ccc69270ddd0a024525cebb8a7c358fb78
parent1bb3b3f11c6960e90bcfe685c0ad1e355a3e787e
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>
libavcodec/ilbcdec.c