avcodec/rasc: unref both frames on reinit
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 2 Oct 2018 01:04:52 +0000 (03:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Oct 2018 09:14:40 +0000 (11:14 +0200)
commitf515c978f63f818d22d94eac9b6ba47f762e6ad9
treef69a06231306c9da02b8a4b4cfd6e6490662a647
parent9a9034958aec8c30ee898db23cb691863801ea1f
avcodec/rasc: unref both frames on reinit

Fixes: integer overflow
Fixes: inconsistent frame dimensions
Fixes: 10454/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5656301162463232

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