From 6f1de914921db70d25e2fc84f3ac3ff53fd24aab Mon Sep 17 00:00:00 2001 From: Zhao Zhili 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 --- 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);