Do not use dvdnav_get_video_aspect (No idea of its unit but it is not
authorLaurent Aimar <fenrir@videolan.org>
Thu, 7 Jun 2007 21:30:42 +0000 (21:30 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 7 Jun 2007 21:30:42 +0000 (21:30 +0000)
vlc one, fixed segfault with x11 at least)

modules/access/dvdnav.c

index 1e6fcc4..f5bed60 100644 (file)
@@ -1123,9 +1123,12 @@ static void ESNew( demux_t *p_demux, int i_id )
     /* Add a new ES */
     if( tk->fmt.i_cat == VIDEO_ES )
     {
-        if( p_sys->i_aspect >= 0 )
+        switch( p_sys->i_aspect )
         {
-            tk->fmt.video.i_aspect = p_sys->i_aspect;
+            /* TODO Any docs somewhere ? */
+        default:
+            tk->fmt.video.i_aspect = 0;
+            break;
         }
         b_select = VLC_TRUE;
     }