[FFmpeg-cvslog] avfilter/bwdif: Fix time base for large denominators
Philip Langdale
git at videolan.org
Sat May 29 23:22:48 EEST 2021
ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Sat May 29 13:19:26 2021 -0700| [7885ab3036a3f2a5a1f317880a9a2c002e1239ff] | committer: Philip Langdale
avfilter/bwdif: Fix time base for large denominators
This is the same fix applied to regular yadif.
Signed-off-by: Philip Langdale <philipl at overt.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7885ab3036a3f2a5a1f317880a9a2c002e1239ff
---
libavfilter/vf_bwdif.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c
index faba945c7f..49b6e73f11 100644
--- a/libavfilter/vf_bwdif.c
+++ b/libavfilter/vf_bwdif.c
@@ -335,10 +335,9 @@ static int config_props(AVFilterLink *link)
BWDIFContext *s = link->src->priv;
YADIFContext *yadif = &s->yadif;
- link->time_base.num = link->src->inputs[0]->time_base.num;
- link->time_base.den = link->src->inputs[0]->time_base.den * 2;
- link->w = link->src->inputs[0]->w;
- link->h = link->src->inputs[0]->h;
+ link->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
+ link->w = link->src->inputs[0]->w;
+ link->h = link->src->inputs[0]->h;
if(yadif->mode&1)
link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate, (AVRational){2,1});
More information about the ffmpeg-cvslog
mailing list