[FFmpeg-devel] [PATCH] avfilter/vf_tinterlace: fix frame rate
Aleksey Vasenev
margtu-fivt at ya.ru
Wed Nov 12 23:39:45 CET 2014
Signed-off-by: Aleksey Vasenev <margtu-fivt at ya.ru>
---
libavfilter/vf_tinterlace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 6bc55b5..7397beb 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -149,6 +149,8 @@ static int config_out_props(AVFilterLink *outlink)
outlink->time_base.num = inlink->time_base.num;
outlink->time_base.den = inlink->time_base.den * 2;
outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2,1});
+ } else if (tinterlace->mode != MODE_PAD) {
+ outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){1,2});
}
av_log(ctx, AV_LOG_VERBOSE, "mode:%d filter:%s h:%d -> h:%d\n",
--
1.9.4.msysgit.2
More information about the ffmpeg-devel
mailing list