]> git.sesse.net Git - vlc/commitdiff
* modules/demux/mkv.cpp: fill-in frame rate info.
authorGildas Bazin <gbazin@videolan.org>
Fri, 20 May 2005 17:35:08 +0000 (17:35 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 20 May 2005 17:35:08 +0000 (17:35 +0000)
modules/demux/mkv.cpp

index cae382af8ed5610d56138587683ed2de8de2cc6f..152f682396bb74b2633cbbdae158df6f7834d9de 100644 (file)
@@ -4137,6 +4137,11 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
             }
             if ( tk->fmt.video.i_visible_height && tk->fmt.video.i_visible_width )
                 tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * tk->fmt.video.i_visible_width / tk->fmt.video.i_visible_height;
+            if( tk->f_fps )
+            {
+                tk->fmt.video.i_frame_rate = (unsigned int)(tk->f_fps * 1001);
+                tk->fmt.video.i_frame_rate_base = 1001;
+            }
         }
         else  if( MKV_IS_ID( l, KaxTrackAudio ) )
         {