summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-11 13:37:19 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-23 16:47:48 +0200
commitc75152cb3d35032924455febcbea1117991ea7a6 (patch)
tree927fc5d63e94ebebfc26122a88d6778dd57b053a
parent4805953bcdf19ef48fbe76e005de11a2732f02b9 (diff)
lavfi/setpts: unset frame durations
This filter cannot know frame durations.
-rw-r--r--libavfilter/setpts.c1
1 files changed, 1 insertions, 0 deletions
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",