[FFmpeg-devel] [PATCH 7/8] lavfi/avf_showfreqs: set frame durations
Anton Khirnov
anton at khirnov.net
Wed Sep 28 12:21:31 EEST 2022
The filter is supposed to produce CFR output.
---
libavfilter/avf_showfreqs.c | 1 +
1 file changed, 1 insertion(+)
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);
}
--
2.35.1
More information about the ffmpeg-devel
mailing list