History

avfilter/avf_showvolume: request new frames only when needed

Paul B Mahol committed 4 years ago

Commit eef652c1 parent 3ce4e081 file · +5 −0Browse files

Unified · Split

libavfilter/avf_showvolume.c+5−0
@@ -468,6 +468,11 @@ static int activate(AVFilterContext *ctx) · 467 unmodified lines
468468 if (ret > 0)
469469 return filter_frame(inlink, in);
470470
471+ if (ff_inlink_queued_samples(inlink) >= s->nb_samples) {
472+ ff_filter_set_ready(ctx, 10);
473+ return 0;
474+ }
475+
471476 FF_FILTER_FORWARD_STATUS(inlink, outlink);
472477 FF_FILTER_FORWARD_WANTED(outlink, inlink);
473478

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t