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

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


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jan 17 15:39:05 2023 +0100| [96d4f745482c6003981015fd05d820fab91973a2] | committer: Paul B Mahol

avfilter/vsrc_mptestsrc: set video frame duration

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

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

diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index 03073dcf5a..55b723af00 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -308,6 +308,7 @@ static int request_frame(AVFilterLink *outlink)
     if (!picref)
         return AVERROR(ENOMEM);
     picref->pts = test->pts++;
+    picref->duration = 1;
 
     // clean image
     for (i = 0; i < h; i++)



More information about the ffmpeg-cvslog mailing list