[FFmpeg-devel] [PATCH 2/8] lavfi/setpts: unset frame durations
Anton Khirnov
anton at khirnov.net
Wed Sep 28 12:21:26 EEST 2022
This filter cannot know frame durations.
---
libavfilter/setpts.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c
index 171fae88c0..ba653df4ae 100644
--- a/libavfilter/setpts.c
+++ b/libavfilter/setpts.c
@@ -185,6 +185,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
d = eval_pts(setpts, inlink, frame, frame->pts);
frame->pts = D2TS(d);
+ frame->duration = 0;
av_log(inlink->dst, AV_LOG_TRACE,
"N:%"PRId64" PTS:%s T:%f POS:%s",
--
2.35.1
More information about the ffmpeg-devel
mailing list