This is the same fix applied to regular yadif.
Unified · Split
| @@ -297,10 +297,9 @@ static int config_output(AVFilterLink *link) · 296 unmodified lines | ||
| 297 | 297 | goto exit; |
| 298 | 298 | } |
| 299 | 299 | |
| 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; | |
| 304 | 303 | |
| 305 | 304 | if(y->mode & 1) |
| 306 | 305 | link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate, |