avcodec/alac: Check for bps of 0
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Aug 2019 23:23:49 +0000 (01:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 26 Aug 2019 08:36:40 +0000 (10:36 +0200)
commit8f49176e845fee8e4e0aaf06411636b46d1ae3ad
tree2a0ecab4cd65e1968838584e1540096d7a956abc
parent59da9dcd7ef6277e4e04998ced71b05a6083c635
avcodec/alac: Check for bps of 0

Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int'
Fixes: 15764/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALAC_fuzzer-5102101203517440

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