mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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;
|
||||
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…
x
Reference in New Issue
Block a user