ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sat Apr 30 16:16:37 2022 +0200| [eef652ca9c893a84c6430fcdd53eed186c299d82] | committer: Paul B Mahol
avfilter/avf_showvolume: request new frames only when needed > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eef652ca9c893a84c6430fcdd53eed186c299d82 --- libavfilter/avf_showvolume.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index a930a1ee2a..854d10be7a 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
