[FFmpeg-cvslog] avfilter/af_join: pass the correct input layouts to ff_channel_layouts_ref
James Almer
git at videolan.org
Wed Sep 11 22:27:15 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Sep 11 14:40:06 2024 -0300| [2e91532ead860651c135bdedd96b6112ff715529] | committer: James Almer
avfilter/af_join: pass the correct input layouts to ff_channel_layouts_ref
Should fix memory leaks show in fate-filter-join and fate-filter-crazychannels.
Reviewed-by: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e91532ead860651c135bdedd96b6112ff715529
---
libavfilter/af_join.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c
index db0320aa70..0ea53248b6 100644
--- a/libavfilter/af_join.c
+++ b/libavfilter/af_join.c
@@ -215,7 +215,7 @@ static int join_query_formats(const AVFilterContext *ctx,
for (i = 0; i < ctx->nb_inputs; i++) {
layouts = ff_all_channel_layouts();
- if ((ret = ff_channel_layouts_ref(layouts, &cfg_in[0]->channel_layouts)) < 0)
+ if ((ret = ff_channel_layouts_ref(layouts, &cfg_in[i]->channel_layouts)) < 0)
return ret;
}
More information about the ffmpeg-cvslog
mailing list