avcodec/cavsdec: Fix undefined behavior from integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 01:24:40 +0000 (03:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 02:25:07 +0000 (04:25 +0200)
commita0e5f7f363555d2befafb1c9e1579dbe0a2fbca7
tree472bb2fcd193030c91250b5d3c60c771a350ebf4
parentce7098b8f2b59c62b5abdb3d74819db75cf67698
avcodec/cavsdec: Fix undefined behavior from integer overflow

Fixes: 1335/clusterfuzz-testcase-minimized-5566961566089216

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