avcodec/flashsv: add FF_CODEC_CAP_INIT_CLEANUP to flashsv1
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jul 2019 09:05:53 +0000 (11:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Jul 2019 19:42:38 +0000 (21:42 +0200)
commit76af425159cfa0c09b85d5c763ffa9942c940bfc
tree5bd1a1b64cb8ffe8ad9531378dddb2e1c756a8be
parent5c46fdf305caac8bf2f270e69e60ae3d614df468
avcodec/flashsv: add FF_CODEC_CAP_INIT_CLEANUP to flashsv1

Fixes: memleaks on error paths during init
Fixes: 15533/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FLASHSV_fuzzer-5647977168764928

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