[FFmpeg-cvslog] avfilter/vsrc_testsrc: set video frame duration

Paul B Mahol git at videolan.org
Tue Jan 17 18:51:15 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jan 17 15:36:58 2023 +0100| [218278b11dbb9c16bea95f3c8333fc242677a402] | committer: Paul B Mahol

avfilter/vsrc_testsrc: set video frame duration

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

 libavfilter/vsrc_testsrc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index e7d8d9ea1a..9760e5fc80 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -183,6 +183,7 @@ static int activate(AVFilterContext *ctx)
     if (!frame)
         return AVERROR(ENOMEM);
     frame->pts                 = test->pts;
+    frame->duration            = 1;
     frame->key_frame           = 1;
     frame->interlaced_frame    = 0;
     frame->pict_type           = AV_PICTURE_TYPE_I;



More information about the ffmpeg-cvslog mailing list