PR #23302 opened by Zhao Zhili (quink)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23302
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23302.patch

Fixes the LeakSanitizer failure in fate-dca-xll-coded. It was exposed
by c65c8f1f4958.

Signed-off-by: Zhao Zhili <[email protected]>


>From 724ca2dbea12529b07ddb04d021d52c03242ec0e Mon Sep 17 00:00:00 2001
From: Zhao Zhili <[email protected]>
Date: Mon, 1 Jun 2026 21:06:47 +0800
Subject: [PATCH] fftools/ffmpeg_filter: free input filter channel layout

Fixes the LeakSanitizer failure in fate-dca-xll-coded. It was exposed
by c65c8f1f4958.

Signed-off-by: Zhao Zhili <[email protected]>
---
 fftools/ffmpeg_filter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 2a8de34d29..8ea89e2ec2 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1037,6 +1037,7 @@ void fg_free(FilterGraph **pfg)
         av_frame_free(&ifp->opts.fallback);
 
         av_buffer_unref(&ifp->hw_frames_ctx);
+        av_channel_layout_uninit(&ifp->ch_layout);
         av_freep(&ifilter->linklabel);
         av_freep(&ifp->opts.name);
         av_frame_side_data_free(&ifp->side_data, &ifp->nb_side_data);
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to