diff mbox series

[FFmpeg-devel,6/8] lavfi/avf_showcqt: set frame durations

Message ID 20220928092132.31566-6-anton@khirnov.net
State Accepted
Commit dc686a0c22ce90800030c6968b689f723b53cb3f
Headers show
Series [FFmpeg-devel,1/8] lavfi/vf_fps: set frame duration | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Sept. 28, 2022, 9:21 a.m. UTC
The filter is supposed to produce CFR output.
---
 libavfilter/avf_showcqt.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;