avfilter/vf_estdif: set frame_rate only when needed
This commit is contained in:
parent
f09712d686
commit
fe06e70c30
@ -137,9 +137,11 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
{
|
{
|
||||||
AVFilterContext *ctx = outlink->src;
|
AVFilterContext *ctx = outlink->src;
|
||||||
AVFilterLink *inlink = ctx->inputs[0];
|
AVFilterLink *inlink = ctx->inputs[0];
|
||||||
|
ESTDIFContext *s = ctx->priv;
|
||||||
|
|
||||||
outlink->time_base = av_mul_q(inlink->time_base, (AVRational){1, 2});
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user