[vlc-devel] commit: Fixed AR setting for dvdsimple, support AR for dvdnav. ( Laurent Aimar )
git version control
git at videolan.org
Wed Aug 27 18:33:42 CEST 2008
vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 13:46:33 2008 +0200| [535e9f122b7bcc214f94a0bfb78f1ccba21ba1ca] | committer: Jean-Baptiste Kempf
Fixed AR setting for dvdsimple, support AR for dvdnav.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=535e9f122b7bcc214f94a0bfb78f1ccba21ba1ca
---
modules/access/dvdnav.c | 5 ++++-
modules/access/dvdread.c | 10 ++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 46e66ab..95f91ac 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1143,7 +1143,10 @@ static void ESNew( demux_t *p_demux, int i_id )
{
switch( p_sys->i_aspect )
{
- /* TODO Any docs somewhere ? */
+ 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;
diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index a918dc9..48671c5 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -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 )
More information about the vlc-devel
mailing list