From 8dc5eb43b070efe152be8971ae58512ea23ecc02 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 8 Nov 2018 11:14:56 +0100 Subject: avfilter/af_afir: return early when giving video frame --- libavfilter/af_afir.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavfilter/af_afir.c') diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c index 7fa0b1343b..69516ccc52 100644 --- a/libavfilter/af_afir.c +++ b/libavfilter/af_afir.c @@ -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)); } } -- cgit v1.2.3