1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-27 15:41:54 +02:00

avfilter/avf_avectorscope: request new frames only when needed

This commit is contained in:
Paul B Mahol 2022-04-30 16:15:43 +02:00
parent 9aa20d28cd
commit 3ce4e08089

View File

@ -414,6 +414,11 @@ static int activate(AVFilterContext *ctx)
if (ret > 0)
return filter_frame(inlink, in);
if (ff_inlink_queued_samples(inlink) >= s->nb_samples) {
ff_filter_set_ready(ctx, 10);
return 0;
}
FF_FILTER_FORWARD_STATUS(inlink, outlink);
FF_FILTER_FORWARD_WANTED(outlink, inlink);