avcodec/mxpegdec: Check for AVDISCARD_ALL
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 Sep 2021 18:16:27 +0000 (20:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Oct 2021 10:06:15 +0000 (12:06 +0200)
commitc59e2d2f03eb6ee83d72aa06a1509380541d5fef
tree01f4b47df788d6324c89e42413182f0052df509a
parent800e7d83e8e4d87d935d7da50037f2d5f931fcee
avcodec/mxpegdec: Check for AVDISCARD_ALL

Fixes: Fixes NULL pointer dereference
Fixes: 36610/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MXPEG_fuzzer-6052641783283712
Fixes: 37907/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MXPEG_fuzzer-4725170850365440
Fixes: 37904/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MXPEG_fuzzer-6367889262247936
Fixes: 38085/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MXPEG_fuzzer-5175270823297024

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 20afd3a63a75a160f61a98a8dcfe06f527ea19b4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mxpegdec.c