ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
