diff mbox series

[FFmpeg-devel,3/5] lavfi/vf_frei0r: set frame durations for frei0r_src

Message ID 20221011095445.27001-3-anton@khirnov.net
State Accepted
Commit c9508a019daf12211124c42f63c097d386a34677
Headers show
Series [FFmpeg-devel,1/5] lavfi/vf_framepack: properly set output duration for framesequence output | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Oct. 11, 2022, 9:54 a.m. UTC
This source produces CFR output.
---
 libavfilter/vf_frei0r.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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