summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-16 16:26:11 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-23 16:51:28 +0200
commit0d9aeb9c25ed2a1820d76fee1930d71ed7fd30f8 (patch)
tree960b6c877ef6de2418b561478dc93b95b178d67e
parentfa314de29a48aadbd220be6d25ead4a5acc0b3e3 (diff)
lavfi/avf_showcqt: set frame durations
The filter is supposed to produce CFR output.
-rw-r--r--libavfilter/avf_showcqt.c1
1 files changed, 1 insertions, 0 deletions
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;