]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_join.c
vf_tonemap: Update hdr metadata with the new peak value
[ffmpeg] / libavfilter / af_join.c
index cf5131e8dcaf0409d40983383ef978133f056f93..930c9e48e736a1bae9a83363f8f1c5084c6cbeb9 100644 (file)
@@ -472,6 +472,8 @@ static int activate(AVFilterContext *ctx)
     int nb_samples = 0;
     int64_t pts;
 
+    FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
+
     if (!s->input_frames[0]) {
         ret = ff_inlink_consume_frame(ctx->inputs[0], &s->input_frames[0]);
         if (ret < 0) {
@@ -485,6 +487,9 @@ static int activate(AVFilterContext *ctx)
                 return 0;
             }
         }
+        if (!s->input_frames[0]) {
+            return 0;
+        }
     }
 
     nb_samples = s->input_frames[0]->nb_samples;