mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
Fixed AR setting for dvdsimple, support AR for dvdnav.
This commit is contained in:
parent
06aa943330
commit
9901a6edca
@ -1143,7 +1143,10 @@ static void ESNew( demux_t *p_demux, int i_id )
|
||||
{
|
||||
switch( p_sys->i_aspect )
|
||||
{
|
||||
/* XXX We need the video size to support it */
|
||||
case 1: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR; break;
|
||||
case 2: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 4 / 3; break;
|
||||
case 3: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 16 / 9; break;
|
||||
case 4: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 221 / 10; break;
|
||||
default:
|
||||
tk->fmt.video.i_aspect = 0;
|
||||
break;
|
||||
|
@ -710,9 +710,15 @@ static void ESNew( demux_t *p_demux, int i_id, int i_lang )
|
||||
/* 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;
|
||||
case 1: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR; break;
|
||||
case 2: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 4 / 3; break;
|
||||
case 3: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 16 / 9; break;
|
||||
case 4: tk->fmt.video.i_aspect = VOUT_ASPECT_FACTOR * 221 / 10; break;
|
||||
default:
|
||||
tk->fmt.video.i_aspect = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if( tk->fmt.i_cat == AUDIO_ES )
|
||||
|
Loading…
Reference in New Issue
Block a user