avfilter/af_afir: return early when giving video frame
authorPaul B Mahol <onemda@gmail.com>
Thu, 8 Nov 2018 10:14:56 +0000 (11:14 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 8 Nov 2018 12:05:08 +0000 (13:05 +0100)
libavfilter/af_afir.c

index 7fa0b13..69516cc 100644 (file)
@@ -512,9 +512,7 @@ static int activate(AVFilterContext *ctx)
     if (s->response && s->have_coeffs) {
         if (ff_outlink_frame_wanted(ctx->outputs[1])) {
             s->video->pts = s->pts;
-            ret = ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
-            if (ret < 0)
-                return ret;
+            return ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
         }
     }