avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Jun 2017 12:37:19 +0000 (14:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Jun 2017 12:38:41 +0000 (14:38 +0200)
commit27c20068054d8c6786833234f7b6db19f1e98362
treec7dda8777a4756c405dc3a1962dceffabf8949d2
parent9a6503f496ae496dd6b1f54fd5752d48435361b0
avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output

Fixes: runtime error: signed integer overflow: 2147483543 + 128 cannot be represented in type 'int'
Fixes: 2234/clusterfuzz-testcase-minimized-6266896041115648

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/takdec.c