[FFmpeg-devel] [PATCH] avfilter/vf_tinterlace: fix frame rate

Michael Niedermayer michaelni at gmx.at
Sun Nov 30 17:30:20 CET 2014


On Sun, Nov 30, 2014 at 01:07:52PM +0100, Vittorio Giovara wrote:
> 
> On 12/11/2014 23:39, Aleksey Vasenev wrote:
> >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",
> My comment from vf_interlace applies also here probably.

do you have testcases that show the problems you speak of?

iam asking as its not entirely clear to me what the problem is that
you describe

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141130/9d8bd897/attachment.asc>


More information about the ffmpeg-devel mailing list