diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-08 13:14:56 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-08 15:05:08 +0300 |
commit | 8dc5eb43b070efe152be8971ae58512ea23ecc02 (patch) | |
tree | 8e4f58aac84ba67855600ded159186e77f0a2067 /libavfilter/af_afir.c | |
parent | fcbde5e6a4a5a4dd32c77304a8c13ed14cbfe1bf (diff) |
avfilter/af_afir: return early when giving video frame
Diffstat (limited to 'libavfilter/af_afir.c')
-rw-r--r-- | libavfilter/af_afir.c | 4 |
1 files changed, 1 insertions, 3 deletions
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)); } } |