]> git.sesse.net Git - ffmpeg/commitdiff
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 7fa0b1343b935ee6528e9e5f5a3d5e624385de97..69516ccc52f983c3b74100b591f9ae1df786303c 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));
         }
     }