You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/avf_showvolume: request new frames only when needed
This commit is contained in:
@@ -468,6 +468,11 @@ static int activate(AVFilterContext *ctx)
|
|||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
return filter_frame(inlink, in);
|
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_STATUS(inlink, outlink);
|
||||||
FF_FILTER_FORWARD_WANTED(outlink, inlink);
|
FF_FILTER_FORWARD_WANTED(outlink, inlink);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user