[FFmpeg-cvslog] avcodec/binkaudio: Fix memleak upon init failure
Andreas Rheinhardt
git at videolan.org
Fri Apr 2 20:48:44 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Mon Nov 30 22:24:10 2020 +0100| [85aed2e390799dc4037a6f0b95310dfda44fa6eb] | committer: Andreas Rheinhardt
avcodec/binkaudio: Fix memleak upon init failure
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85aed2e390799dc4037a6f0b95310dfda44fa6eb
---
libavcodec/binkaudio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index 381fc4cd15..e0f12cefb1 100644
--- a/libavcodec/binkaudio.c
+++ b/libavcodec/binkaudio.c
@@ -345,6 +345,7 @@ AVCodec ff_binkaudio_rdft_decoder = {
.close = decode_end,
.receive_frame = binkaudio_receive_frame,
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
AVCodec ff_binkaudio_dct_decoder = {
@@ -357,4 +358,5 @@ AVCodec ff_binkaudio_dct_decoder = {
.close = decode_end,
.receive_frame = binkaudio_receive_frame,
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
More information about the ffmpeg-cvslog
mailing list