From fe06e70c301f62a20f4662259abbe658e5a84468 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 30 Apr 2022 10:08:21 +0200 Subject: avfilter/vf_estdif: set frame_rate only when needed --- libavfilter/vf_estdif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavfilter/vf_estdif.c') diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index 0e5c9b4224..3506eab9c5 100644 --- a/libavfilter/vf_estdif.c +++ b/libavfilter/vf_estdif.c @@ -137,9 +137,11 @@ static int config_output(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; AVFilterLink *inlink = ctx->inputs[0]; + ESTDIFContext *s = ctx->priv; outlink->time_base = av_mul_q(inlink->time_base, (AVRational){1, 2}); - outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2, 1}); + if (s->mode) + outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2, 1}); return 0; } -- cgit v1.2.3