mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avfilter/yadif_cuda: Fix time base for large denominators
This is the same fix applied to regular yadif. Signed-off-by: Philip Langdale <philipl@overt.org>
This commit is contained in:
parent
7885ab3036
commit
8f8a7e491d
@ -297,10 +297,9 @@ static int config_output(AVFilterLink *link)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
link->time_base.num = ctx->inputs[0]->time_base.num;
|
||||
link->time_base.den = ctx->inputs[0]->time_base.den * 2;
|
||||
link->w = ctx->inputs[0]->w;
|
||||
link->h = ctx->inputs[0]->h;
|
||||
link->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
|
||||
link->w = ctx->inputs[0]->w;
|
||||
link->h = ctx->inputs[0]->h;
|
||||
|
||||
if(y->mode & 1)
|
||||
link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user