[FFmpeg-cvslog] lavfi/avf_showfreqs: set frame durations

Anton Khirnov git at videolan.org
Tue Oct 4 12:56:58 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 16 16:26:11 2022 +0200| [06758370aafc7f89344c91d3d05c41c606ad03eb] | committer: Anton Khirnov

lavfi/avf_showfreqs: set frame durations

The filter is supposed to produce CFR output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06758370aafc7f89344c91d3d05c41c606ad03eb
---

 libavfilter/avf_showfreqs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c
index 86a67c7328..cc7d6204b4 100644
--- a/libavfilter/avf_showfreqs.c
+++ b/libavfilter/avf_showfreqs.c
@@ -469,6 +469,7 @@ static int plot_freqs(AVFilterLink *inlink, int64_t pts)
 
     av_free(colors);
     out->pts = s->pts;
+    out->duration = 1;
     out->sample_aspect_ratio = (AVRational){1,1};
     return ff_filter_frame(outlink, out);
 }



More information about the ffmpeg-cvslog mailing list