Browse Source

avfilter/af_afir: return early when giving video frame

tags/n4.2
Paul B Mahol 6 years ago
parent
commit
8dc5eb43b0
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavfilter/af_afir.c

+ 1
- 3
libavfilter/af_afir.c View File

@@ -512,9 +512,7 @@ static int activate(AVFilterContext *ctx)
if (s->response && s->have_coeffs) { if (s->response && s->have_coeffs) {
if (ff_outlink_frame_wanted(ctx->outputs[1])) { if (ff_outlink_frame_wanted(ctx->outputs[1])) {
s->video->pts = s->pts; 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));
} }
} }




Loading…
Cancel
Save