[FFmpeg-devel] [PATCH 3/5] lavfi/vf_frei0r: set frame durations for frei0r_src
Anton Khirnov
anton at khirnov.net
Tue Oct 11 12:54:43 EEST 2022
This source produces CFR output.
---
libavfilter/vf_frei0r.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 1e01114b76..66351d6678 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -488,6 +488,7 @@ static int source_request_frame(AVFilterLink *outlink)
frame->sample_aspect_ratio = (AVRational) {1, 1};
frame->pts = s->pts++;
+ frame->duration = 1;
s->update(s->instance, av_rescale_q(frame->pts, s->time_base, (AVRational){1,1000}),
NULL, (uint32_t *)frame->data[0]);
--
2.35.1
More information about the ffmpeg-devel
mailing list