diff mbox series

[FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure

Message ID 20201127010249.2724610-1-andreas.rheinhardt@gmail.com
State Accepted
Commit 5baee59301bdf7f6dbf80ceaf5d5b38c9b385571
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 27, 2020, 1:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/a64multienc.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Paul B Mahol Nov. 27, 2020, 1:11 p.m. UTC | #1
LGTM

On Fri, Nov 27, 2020 at 2:55 AM Andreas Rheinhardt <
andreas.rheinhardt@gmail.com> wrote:

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/a64multienc.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
> index 38f25020f5..5f4825d55d 100644
> --- a/libavcodec/a64multienc.c
> +++ b/libavcodec/a64multienc.c
> @@ -407,6 +407,7 @@ AVCodec ff_a64multi_encoder = {
>      .close          = a64multi_close_encoder,
>      .pix_fmts       = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8,
> AV_PIX_FMT_NONE},
>      .capabilities   = AV_CODEC_CAP_DELAY,
> +    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
>  };
>  #endif
>  #if CONFIG_A64MULTI5_ENCODER
> @@ -421,5 +422,6 @@ AVCodec ff_a64multi5_encoder = {
>      .close          = a64multi_close_encoder,
>      .pix_fmts       = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8,
> AV_PIX_FMT_NONE},
>      .capabilities   = AV_CODEC_CAP_DELAY,
> +    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
>  };
>  #endif
> --
> 2.25.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 38f25020f5..5f4825d55d 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -407,6 +407,7 @@  AVCodec ff_a64multi_encoder = {
     .close          = a64multi_close_encoder,
     .pix_fmts       = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE},
     .capabilities   = AV_CODEC_CAP_DELAY,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
 };
 #endif
 #if CONFIG_A64MULTI5_ENCODER
@@ -421,5 +422,6 @@  AVCodec ff_a64multi5_encoder = {
     .close          = a64multi_close_encoder,
     .pix_fmts       = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE},
     .capabilities   = AV_CODEC_CAP_DELAY,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
 };
 #endif