diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-07 12:05:53 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-19 22:42:38 +0300 |
commit | 1123331f59d3f00ac230f352a09048a3bed86d8e (patch) | |
tree | eb6582db5270639974643aeaf3f19980ecbe1e21 /libavcodec/flashsv.c | |
parent | 76af425159cfa0c09b85d5c763ffa9942c940bfc (diff) |
avcodec/flashsv: add FF_CODEC_CAP_INIT_CLEANUP to flashsv2
Fixes: memleaks on error paths during init
Fixes: 15548/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FLASHSV2_fuzzer-6324019382452224
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r-- | libavcodec/flashsv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 45846bb3df..92d1af9fcf 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -585,6 +585,7 @@ AVCodec ff_flashsv2_decoder = { .close = flashsv2_decode_end, .decode = flashsv_decode_frame, .capabilities = AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, }; #endif /* CONFIG_FLASHSV2_DECODER */ |