summaryrefslogtreecommitdiff
path: root/libavfilter/vf_estdif.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-04-30 10:08:21 +0200
committerPaul B Mahol <onemda@gmail.com>2022-04-30 10:09:45 +0200
commitfe06e70c301f62a20f4662259abbe658e5a84468 (patch)
treed77f282531b20b468df8ded034bc37a297a605a1 /libavfilter/vf_estdif.c
parentf09712d68631d6d17237d36519f41039d151b7fe (diff)
avfilter/vf_estdif: set frame_rate only when needed
Diffstat (limited to 'libavfilter/vf_estdif.c')
-rw-r--r--libavfilter/vf_estdif.c4
1 files changed, 3 insertions, 1 deletions
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;
}