You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/yadif: Fix time base for large denominators
This fixes an issue where the yadif filter could cause the timebase denominator to overflow. Signed-off-by: Tom Boshoven <tom@jwplayer.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
26d3c81bc5
commit
8205f32663
@@ -293,8 +293,7 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
AVFilterContext *ctx = outlink->src;
|
AVFilterContext *ctx = outlink->src;
|
||||||
YADIFContext *s = ctx->priv;
|
YADIFContext *s = ctx->priv;
|
||||||
|
|
||||||
outlink->time_base.num = ctx->inputs[0]->time_base.num;
|
outlink->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
|
||||||
outlink->time_base.den = ctx->inputs[0]->time_base.den * 2;
|
|
||||||
outlink->w = ctx->inputs[0]->w;
|
outlink->w = ctx->inputs[0]->w;
|
||||||
outlink->h = ctx->inputs[0]->h;
|
outlink->h = ctx->inputs[0]->h;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user