diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c index 200b2e452c..fe381a631d 100644 --- a/libavfilter/avf_avectorscope.c +++ b/libavfilter/avf_avectorscope.c @@ -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);