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

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


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

lavfi/avf_showcqt: set frame durations

The filter is supposed to produce CFR output.

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

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

diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index 33c482bd42..c019dc2564 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -1187,6 +1187,7 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout)
             UPDATE_TIME(s->sono_time);
         }
         out->pts = s->next_pts;
+        out->duration = PTS_STEP;
         s->next_pts += PTS_STEP;
     }
     s->sono_count = (s->sono_count + 1) % s->count;



More information about the ffmpeg-cvslog mailing list