[FFmpeg-cvslog] lavfi/vf_frei0r: set frame durations for frei0r_src

Anton Khirnov git at videolan.org
Thu Oct 13 11:21:38 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Oct 11 10:47:42 2022 +0200| [c9508a019daf12211124c42f63c097d386a34677] | committer: Anton Khirnov

lavfi/vf_frei0r: set frame durations for frei0r_src

This source produces CFR output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9508a019daf12211124c42f63c097d386a34677
---

 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]);



More information about the ffmpeg-cvslog mailing list