[FFmpeg-devel] [PATCH 5/5] avcodec/wmavoice: Add FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer
michael at niedermayer.cc
Mon Nov 18 18:30:14 EET 2019
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 at niedermayer.cc>
---
libavcodec/wmavoice.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 4c147fe04f..8503d3fe35 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,
};
--
2.23.0
More information about the ffmpeg-devel
mailing list