[FFmpeg-devel] [PATCH v2 18/22] lavfi/vf_libplacebo: set format list for all inputs
Niklas Haas
ffmpeg at haasn.xyz
Sun Jun 18 14:17:10 EEST 2023
From: Niklas Haas <git at haasn.dev>
---
libavfilter/vf_libplacebo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index fcd3ad07e2c..627223256c6 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -1131,7 +1131,8 @@ static int libplacebo_query_format(AVFilterContext *ctx)
goto fail;
}
- RET(ff_formats_ref(infmts, &ctx->inputs[0]->outcfg.formats));
+ for (int i = 0; i < s->nb_inputs; i++)
+ RET(ff_formats_ref(infmts, &ctx->inputs[i]->outcfg.formats));
RET(ff_formats_ref(outfmts, &ctx->outputs[0]->incfg.formats));
return 0;
--
2.41.0
More information about the ffmpeg-devel
mailing list