mkv.cpp: support aspect ratio for video tracks
authorSteve Lhomme <robux@videolan.org>
Sun, 6 Mar 2005 10:36:49 +0000 (10:36 +0000)
committerSteve Lhomme <robux@videolan.org>
Sun, 6 Mar 2005 10:36:49 +0000 (10:36 +0000)
modules/demux/mkv.cpp

index 0665a32..c7225a3 100644 (file)
@@ -2583,6 +2583,8 @@ static void ParseTrackEntry( demux_t *p_demux, EbmlMaster *m )
                     msg_Dbg( p_demux, "|   |   |   |   + Unknown (%s)", typeid(*l).name() );
                 }
             }
+            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;
         }
         else  if( MKV_IS_ID( l, KaxTrackAudio ) )
         {