avcodec/takdec: Fix integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Jun 2017 19:21:56 +0000 (21:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Jun 2017 01:03:04 +0000 (03:03 +0200)
commit0c2ef4f6b4d52a7b7184c747ffea3576926ea1b1
treed43bc325b4adb5bbd197dafc59d751db8dd748e2
parent27f80ab0160d2e64007e1c9799ffd4504cc13eb5
avcodec/takdec: Fix integer overflow

Fixes: runtime error: signed integer overflow: 512 + 2147483146 cannot be represented in type 'int'
Fixes: 2314/clusterfuzz-testcase-minimized-4519333877252096

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