aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_tinterlace.c
diff options
context:
space:
mode:
authorAleksey Vasenev <margtu-fivt@ya.ru>2014-11-13 01:39:45 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-13 22:35:15 +0100
commit8349001638fb2b6c54eafdb90418eb9f2d042077 (patch)
tree9878d07eefded138dbd21972d5334f2d3b3e2834 /libavfilter/vf_tinterlace.c
parentdf8248f66e362c3015d95ac86d1917dde8dc0a0c (diff)
downloadffmpeg-8349001638fb2b6c54eafdb90418eb9f2d042077.tar.gz
avfilter/vf_tinterlace: fix frame rate
Signed-off-by: Aleksey Vasenev <margtu-fivt@ya.ru> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_tinterlace.c')
-rw-r--r--libavfilter/vf_tinterlace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 6bc55b5960..7397bebafd 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",