Commit e9b75cf8 authored by Laurent Aimar's avatar Laurent Aimar

Do not use dvdnav_get_video_aspect (No idea of its unit but it is not

vlc one, fixed segfault with x11 at least)
parent f7f791b9
...@@ -1123,9 +1123,12 @@ static void ESNew( demux_t *p_demux, int i_id ) ...@@ -1123,9 +1123,12 @@ static void ESNew( demux_t *p_demux, int i_id )
/* Add a new ES */ /* Add a new ES */
if( tk->fmt.i_cat == VIDEO_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; b_select = VLC_TRUE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment