aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-09-30 21:19:01 +0200
committerAnton Khirnov <anton@khirnov.net>2023-10-03 16:57:02 +0200
commit63bc6430a67ad9409093c1e613f5120e72c39985 (patch)
tree569718af8b3516074829585d8b864b7cab95fb49 /libavfilter
parent99fe00ab4b690578ef6c8c496812dbb477d2bc7b (diff)
downloadffmpeg-63bc6430a67ad9409093c1e613f5120e72c39985.tar.gz
lavfi/yadif: update output frame durations
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/yadif_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/yadif_common.c b/libavfilter/yadif_common.c
index b26989f574..21097011f5 100644
--- a/libavfilter/yadif_common.c
+++ b/libavfilter/yadif_common.c
@@ -151,6 +151,7 @@ int ff_yadif_filter_frame(AVFilterLink *link, AVFrame *frame)
av_frame_free(&yadif->prev);
if (yadif->out->pts != AV_NOPTS_VALUE)
yadif->out->pts *= 2;
+ yadif->out->duration *= 2;
return ff_filter_frame(ctx->outputs[0], yadif->out);
}
@@ -168,6 +169,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (yadif->out->pts != AV_NOPTS_VALUE)
yadif->out->pts *= 2;
+ if (!(yadif->mode & 1))
+ yadif->out->duration *= 2;
return return_frame(ctx, 0);
}