[FFmpeg-cvslog] avfilter/vf_estdif: fix time base for large denominators
Paul B Mahol
git at videolan.org
Fri Jul 16 10:11:34 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 16 09:04:21 2021 +0200| [ca94d52f2ea3e6767c234874cf833861ddd90762] | committer: Paul B Mahol
avfilter/vf_estdif: fix time base for large denominators
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca94d52f2ea3e6767c234874cf833861ddd90762
---
libavfilter/vf_estdif.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c
index 9dda604d3c..192837ab0f 100644
--- a/libavfilter/vf_estdif.c
+++ b/libavfilter/vf_estdif.c
@@ -140,10 +140,8 @@ static int config_output(AVFilterLink *outlink)
AVFilterContext *ctx = outlink->src;
AVFilterLink *inlink = ctx->inputs[0];
- outlink->time_base.num = inlink->time_base.num;
- outlink->time_base.den = inlink->time_base.den * 2;
- outlink->frame_rate.num = inlink->frame_rate.num * 2;
- outlink->frame_rate.den = inlink->frame_rate.den;
+ outlink->time_base = av_mul_q(inlink->time_base, (AVRational){1, 2});
+ outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2, 1});
return 0;
}
More information about the ffmpeg-cvslog
mailing list