History

avfilter/yadif_cuda: Fix time base for large denominators

This is the same fix applied to regular yadif.

Philip Langdale committed 5 years ago

Commit 8f8a7e41 parent 7885ab31 file · +3 −4Browse files

Unified · Split

libavfilter/vf_yadif_cuda.c+3−4
@@ -297,10 +297,9 @@ static int config_output(AVFilterLink *link) · 296 unmodified lines
297 goto exit;297 goto exit;
298 }298 }
299 299
300 link->time_base.num = ctx->inputs[0]->time_base.num;300 link->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
301 link->time_base.den = ctx->inputs[0]->time_base.den * 2;301 link->w = ctx->inputs[0]->w;
302 link->w = ctx->inputs[0]->w;302 link->h = ctx->inputs[0]->h;
303 link->h = ctx->inputs[0]->h;
304 303
305 if(y->mode & 1)304 if(y->mode & 1)
306 link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,305 link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t