Commit 8dc5eb43 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_afir: return early when giving video frame

parent fcbde5e6
......@@ -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));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment