]> git.sesse.net Git - vlc/commitdiff
Fix frame rate output from deinterlacer
authorSteinar H. Gunderson <steinar+vlc@gunderson.no>
Sat, 8 Jun 2013 20:41:07 +0000 (22:41 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Jun 2013 19:02:31 +0000 (22:02 +0300)
In the deinterlacer module, when b_double_rate is set, actually
double the frame rate in the output format.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/video_filter/deinterlace/deinterlace.c

index 4392a0cd89ef6b070fd0706981b4662a49bcc611..64aef0f8a2c2eb8794ed204c9689acc521afa030 100644 (file)
@@ -240,6 +240,11 @@ void GetOutputFormat( filter_t *p_filter,
         p_dst->i_sar_den *= 2;
     }
 
+    if( p_sys->b_double_rate )
+    {
+        p_dst->i_frame_rate *= 2;
+    }
+
     if( p_sys->i_mode == DEINTERLACE_PHOSPHOR  &&
         2 * p_sys->chroma->p[1].h.num == p_sys->chroma->p[1].h.den &&
         2 * p_sys->chroma->p[2].h.num == p_sys->chroma->p[2].h.den &&