avfilter: forward status back in some filters that missed it
authorPaul B Mahol <onemda@gmail.com>
Sat, 5 May 2018 19:24:41 +0000 (21:24 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 5 May 2018 19:32:33 +0000 (21:32 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_afade.c
libavfilter/af_amix.c
libavfilter/af_join.c

index 285b5b6..d823e82 100644 (file)
@@ -441,6 +441,8 @@ static int activate(AVFilterContext *ctx)
     int ret = 0, nb_samples, status;
     int64_t pts;
 
+    FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
+
     if (s->crossfade_is_over) {
         ret = ff_inlink_consume_frame(ctx->inputs[1], &in);
         if (ret < 0) {
index 46f1bf6..ec2556f 100644 (file)
@@ -425,6 +425,8 @@ static int activate(AVFilterContext *ctx)
     AVFrame *buf = NULL;
     int i, ret;
 
+    FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
+
     for (i = 0; i < s->nb_inputs; i++) {
         AVFilterLink *inlink = ctx->inputs[i];
 
index 4f86e13..930c9e4 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) {