You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_nnedi: set frame_rate only when needed
This commit is contained in:
@@ -166,11 +166,13 @@ AVFILTER_DEFINE_CLASS(nnedi);
|
||||
static int config_output(AVFilterLink *outlink)
|
||||
{
|
||||
AVFilterContext *ctx = outlink->src;
|
||||
const NNEDIContext *const s = ctx->priv;
|
||||
|
||||
outlink->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
|
||||
outlink->w = ctx->inputs[0]->w;
|
||||
outlink->h = ctx->inputs[0]->h;
|
||||
|
||||
if (s->field == -2 || s->field > 1)
|
||||
outlink->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
|
||||
(AVRational){2, 1});
|
||||
|
||||
|
Reference in New Issue
Block a user