[FFmpeg-cvslog] avfilter/vf_estdif: set frame_rate only when needed
Paul B Mahol
git at videolan.org
Sat Apr 30 11:08:17 EEST 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Apr 30 10:08:21 2022 +0200| [fe06e70c301f62a20f4662259abbe658e5a84468] | committer: Paul B Mahol
avfilter/vf_estdif: set frame_rate only when needed
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe06e70c301f62a20f4662259abbe658e5a84468
---
libavfilter/vf_estdif.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c
index 0e5c9b4224..3506eab9c5 100644
--- a/libavfilter/vf_estdif.c
+++ b/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;
}
More information about the ffmpeg-cvslog
mailing list