mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/avf_showvolume: request new frames only when needed
This commit is contained in:
parent
3ce4e08089
commit
eef652ca9c
1 changed files with 5 additions and 0 deletions
|
|
@ -468,6 +468,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue