vf_interlace: implement frame rate
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Nov 2015 17:57:24 +0000 (09:57 -0800)
committerAnton Khirnov <anton@khirnov.net>
Mon, 9 Nov 2015 07:09:41 +0000 (08:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from ffmpeg commit 227b4458fb434875b127a0c2306fa3b899a770bf)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_interlace.c

index 8ef58e4..939fabc 100644 (file)
@@ -109,8 +109,10 @@ static int config_out_props(AVFilterLink *outlink)
     outlink->w = inlink->w;
     outlink->h = inlink->h;
     outlink->time_base = inlink->time_base;
+    outlink->frame_rate = inlink->frame_rate;
     // half framerate
     outlink->time_base.num *= 2;
+    outlink->frame_rate.den *= 2;
 
 
     if (s->lowpass) {