avfilter/af_afir: return early when giving video frame
This commit is contained in:
parent
fcbde5e6a4
commit
8dc5eb43b0
@ -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));
|
return ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user