avcodec/dstdec: Fix integer overflow in samples_per_frame computation
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Sep 2019 14:48:46 +0000 (16:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Sep 2019 19:02:34 +0000 (21:02 +0200)
commit7dc0943d4aa014e616e2f2a4802cb3da829f9420
treeb03a60234a4eb4b60fa976851da8920227722f17
parent972a0a818ff7a9b33c7f37e08783f4b6082f9aa2
avcodec/dstdec: Fix integer overflow in samples_per_frame computation

Fixes: Timeout (? -> 2ms)
Fixes: 17616/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5198057947267072

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dstdec.c