mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_estdif: fix time base for large denominators
This commit is contained in:
parent
c4e51af5e7
commit
ca94d52f2e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user