diff mbox series

[FFmpeg-devel] avfilter/af_pan: Uninitialize channel layout

Message ID AS8P250MB0744CC74E7F315720EBF03F18F512@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e2afcb82429a83c819f38c320c804f927b41c4d0
Headers show
Series [FFmpeg-devel] avfilter/af_pan: Uninitialize channel layout | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 19, 2024, 10:41 p.m. UTC
Fixes a leak in the mov-mp4-pcm-float FATE test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/af_pan.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andreas Rheinhardt Feb. 20, 2024, 1:54 p.m. UTC | #1
Andreas Rheinhardt:
> Fixes a leak in the mov-mp4-pcm-float FATE test.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavfilter/af_pan.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
> index cfed9f146a..d8431a51d9 100644
> --- a/libavfilter/af_pan.c
> +++ b/libavfilter/af_pan.c
> @@ -399,6 +399,7 @@ static av_cold void uninit(AVFilterContext *ctx)
>  {
>      PanContext *pan = ctx->priv;
>      swr_free(&pan->swr);
> +    av_channel_layout_uninit(&pan->out_channel_layout);
>  }
>  
>  #define OFFSET(x) offsetof(PanContext, x)

Will apply tonight unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index cfed9f146a..d8431a51d9 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -399,6 +399,7 @@  static av_cold void uninit(AVFilterContext *ctx)
 {
     PanContext *pan = ctx->priv;
     swr_free(&pan->swr);
+    av_channel_layout_uninit(&pan->out_channel_layout);
 }
 
 #define OFFSET(x) offsetof(PanContext, x)