[FFmpeg-devel] [PATCH 190/217] avcodec/binkaudio: Fix memleak upon init failure

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Apr 2 19:22:59 EEST 2021


On Wed, Dec 2, 2020 at 5:24 AM Andreas Rheinhardt <
andreas.rheinhardt at gmail.com> wrote:

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/binkaudio.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
> index 7b5965ede1..f25aea0d64 100644
> --- a/libavcodec/binkaudio.c
> +++ b/libavcodec/binkaudio.c
> @@ -344,6 +344,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 = {
> @@ -356,4 +357,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,
>  };
> --
> 2.25.1
>
>

Will apply.

- Andreas


More information about the ffmpeg-devel mailing list