1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avfilter/af_afir: return early when giving video frame

This commit is contained in:
Paul B Mahol 2018-11-08 11:14:56 +01:00
parent fcbde5e6a4
commit 8dc5eb43b0

View 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));
}
}