avcodec/imm4: Unreference previous frame on frame size change
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Mar 2019 21:22:55 +0000 (22:22 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 Mar 2019 19:42:59 +0000 (20:42 +0100)
commit0be0197f49a5ac78c0f8be34fe66dd7657c83c23
treee7abde822f596b445067a463bf036b30339841ed
parent1144d5c96d2ade86b4c3ea98b949dbd3ee926636
avcodec/imm4: Unreference previous frame on frame size change

Fixes: Out of array access
Fixes: 13552/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IMM4_fuzzer-5767949648920576

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/imm4.c