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
commit3cefde7eb5c47fc9a213a2c52aeeb88989c8241e (patch)
treedddfa76116aa75dcb20acd4cb0f49d721eada4a9
parent0d9aeb9c25ed2a1820d76fee1930d71ed7fd30f8 (diff)
lavfi/avf_showfreqs: set frame durations
The filter is supposed to produce CFR output.
-rw-r--r--libavfilter/avf_showfreqs.c1
1 files changed, 1 insertions, 0 deletions
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);
}