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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_yadif_cuda.c+3−4
@@ -297,10 +297,9 @@ static int config_output(AVFilterLink *link) · 296 unmodified lines
297297 goto exit;
298298 }
299299
300− link->time_base.num = ctx->inputs[0]->time_base.num;
301− link->time_base.den = ctx->inputs[0]->time_base.den * 2;
302− link->w = ctx->inputs[0]->w;
303− link->h = ctx->inputs[0]->h;
300+ link->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
301+ link->w = ctx->inputs[0]->w;
302+ link->h = ctx->inputs[0]->h;
304303
305304 if(y->mode & 1)
306305 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