[FFmpeg-cvslog] lavfi/vf_libplacebo: handle multiple inputs

Niklas Haas git at videolan.org
Tue Jun 20 18:11:34 EEST 2023


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Thu Jun 15 15:58:33 2023 +0200| [0eb37c2419ad8728fbc5df8dc85791fc8fdf26e2] | committer: Niklas Haas

lavfi/vf_libplacebo: handle multiple inputs

This commit still relies on a single input for PTS determination, to be
changed in the next commit.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0eb37c2419ad8728fbc5df8dc85791fc8fdf26e2
---

 libavfilter/vf_libplacebo.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index 5ea6fcd792..a56ebbf54e 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -979,11 +979,13 @@ static int libplacebo_activate(AVFilterContext *ctx)
     AVFilterLink *outlink = ctx->outputs[0];
     int64_t pts;
 
-    FF_FILTER_FORWARD_STATUS_BACK(outlink, in->link);
+    FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
     pl_log_level_update(s->log, get_log_level());
 
-    if ((ret = handle_input(ctx, in)) < 0)
-        return ret;
+    for (int i = 0; i < s->nb_inputs; i++) {
+        if ((ret = handle_input(ctx, &s->inputs[i])) < 0)
+            return ret;
+    }
 
     if (ff_outlink_frame_wanted(outlink)) {
         if (s->fps.num) {



More information about the ffmpeg-cvslog mailing list