[FFmpeg-devel] [PATCH 4/8] lavfi/vf_coreimage: set frame durations

Anton Khirnov anton at khirnov.net
Mon Oct 10 19:10:51 EEST 2022


This filter is supposed to produce CFR output.
---
 libavfilter/vf_coreimage.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m
index 5b025c2388..874bdc8c56 100644
--- a/libavfilter/vf_coreimage.m
+++ b/libavfilter/vf_coreimage.m
@@ -300,6 +300,7 @@ static int request_frame(AVFilterLink *link)
     }
 
     frame->pts                 = ctx->pts;
+    frame->duration            = 1;
     frame->key_frame           = 1;
     frame->interlaced_frame    = 0;
     frame->pict_type           = AV_PICTURE_TYPE_I;
-- 
2.35.1



More information about the ffmpeg-devel mailing list