avcodec/dstdec: Check sample rate
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Feb 2020 19:56:56 +0000 (20:56 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 May 2020 07:55:57 +0000 (09:55 +0200)
commit5727b1f13f36c4db30d5d0de51640f740edf01e8
treec9c75eb01307d65ab59340fa2134670d4ba36c18
parent6dd5da3f8b5a6dad4850e60ba26be0623c9a9bcb
avcodec/dstdec: Check sample rate

Fixes: out of array access
Fixes: 20659/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5735812071424000

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