avcodec/rasc: Check frame before clearing
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Dec 2020 22:41:10 +0000 (23:41 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Jan 2021 17:08:56 +0000 (18:08 +0100)
commit380a3a0adfae7aa898d2ec8a5b0d5cd949a11111
treec5804287c9755f1b914ad2427d7b882628bf65fd
parentac5a568e6dff8162a2e982f3571b925f1b207e2c
avcodec/rasc: Check frame before clearing

Fixes: null pointer dereference
Fixes: 27737/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5769028685266944

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