Browse Source

avcodec/binkaudio: Fix memleak upon init failure

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 85aed2e390)
tags/n4.4
Andreas Rheinhardt Andreas Rheinhardt 4 years ago
parent
commit
632262f184
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/binkaudio.c

+ 2
- 0
libavcodec/binkaudio.c View File

@@ -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,
};

Loading…
Cancel
Save