[FFmpeg-devel] [PATCH 18/22] lavfi/vf_libplacebo: set format list for all inputs
Niklas Haas
ffmpeg at haasn.xyz
Fri Jun 16 12:29:55 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 427a15dc47..a30b244843 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -1129,7 +1129,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