aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-16 16:26:11 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-04 11:55:03 +0200
commitdc686a0c22ce90800030c6968b689f723b53cb3f (patch)
treef55300f38718708fc535465ca72b5c3a1114b929
parent7d13c5dff04ac3a49c22d9a8bf719920ece45f77 (diff)
downloadffmpeg-dc686a0c22ce90800030c6968b689f723b53cb3f.tar.gz
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;