diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-01-17 18:55:52 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-01-17 19:02:35 +0100 |
commit | ceb52d47a36f581c32bff7c91f7d1f80b0ae9050 (patch) | |
tree | 0224ea825f20eba99d5fadc273718ccf726ab397 | |
parent | 04bbf5f70d281f11d1ee94c8ee3a91912d3a6c6a (diff) |
avfilter/avf_showvolume: set output video frame duration
-rw-r--r-- | libavfilter/avf_showvolume.c | 1 |
1 files changed, 1 insertions, 0 deletions
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++) { |