diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-18 16:41:54 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-15 03:01:22 +0300 |
commit | 5d0b3e282a6a77d7b1d0c74c7a66e41f98f21f03 (patch) | |
tree | 7c4bd84cfbf7100a000b436ade4f0ead5127f643 /libavcodec/wmavoice.c | |
parent | ec3fe67074ad0a6a3a817f6f42175ea63a98092b (diff) |
avcodec/wmavoice: Add FF_CODEC_CAP_INIT_CLEANUP
Fixes: memleaks
Fixes: 18855/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAVOICE_fuzzer-5687647317524480
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/wmavoice.c')
-rw-r--r-- | libavcodec/wmavoice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 5dd9b3dbb7..9420d7f0c8 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -2001,5 +2001,6 @@ AVCodec ff_wmavoice_decoder = { .close = wmavoice_decode_end, .decode = wmavoice_decode_packet, .capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .flush = wmavoice_flush, }; |