From ceb52d47a36f581c32bff7c91f7d1f80b0ae9050 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 17 Jan 2023 18:55:52 +0100 Subject: [PATCH] avfilter/avf_showvolume: set output video frame duration --- libavfilter/avf_showvolume.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index 952f079a67..24d42d030d 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -339,6 +339,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) clear_picture(s, outlink); } s->out->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); + s->out->duration = 1; if ((s->f < 1.) && (s->f > 0.)) { for (j = 0; j < outlink->h; j++) {