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

Andreas Rheinhardt git at videolan.org
Tue Feb 20 19:59:02 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Feb 19 23:35:52 2024 +0100| [e2afcb82429a83c819f38c320c804f927b41c4d0] | committer: Andreas Rheinhardt

avfilter/af_pan: Uninitialize channel layout

Fixes a leak in the mov-mp4-pcm-float FATE test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2afcb82429a83c819f38c320c804f927b41c4d0
---

 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)



More information about the ffmpeg-cvslog mailing list