]> git.sesse.net Git - vlc/commitdiff
* src/input/es_out.c: reduce the frame rate rational in es_out_Add().
authorGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 15:10:59 +0000 (15:10 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 15:10:59 +0000 (15:10 +0000)
src/input/es_out.c

index 859cf9ea6254fbd4af2ac2eb2ee7bb02b7bebfd3..14926d67106336df9fd73a28cf48fb3d6bb63069 100644 (file)
@@ -678,6 +678,11 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
 
     case VIDEO_ES:
         es->i_channel = p_sys->i_video;
+        if( fmt->video.i_frame_rate && fmt->video.i_frame_rate_base )
+            vlc_reduce( &es->fmt.video.i_frame_rate,
+                        &es->fmt.video.i_frame_rate_base,
+                        fmt->video.i_frame_rate,
+                        fmt->video.i_frame_rate_base, 0 );
         break;
 
     case SPU_ES: