avfilter/vf_estdif: set frame_rate only when needed

release/5.1
Paul B Mahol 3 years ago
parent f09712d686
commit fe06e70c30
  1. 4
      libavfilter/vf_estdif.c

@ -137,9 +137,11 @@ static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
AVFilterLink *inlink = ctx->inputs[0];
ESTDIFContext *s = ctx->priv;
outlink->time_base = av_mul_q(inlink->time_base, (AVRational){1, 2});
outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2, 1});
if (s->mode)
outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2, 1});
return 0;
}

Loading…
Cancel
Save