]> git.sesse.net Git - vlc/commitdiff
Change default aspect to 16:9.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 00:08:58 +0000 (02:08 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 00:08:58 +0000 (02:08 +0200)
modules/access/sdi.cpp

index 04dcfc322d62b529ff7e55c52c784b46a5a122a6..c48c5b825d58a7a47d4e334bae80606acc172c41 100644 (file)
@@ -190,8 +190,8 @@ static int Open( vlc_object_t *p_this )
     es_format_Init( &fmt, VIDEO_ES, VLC_CODEC_UYVY );
     fmt.video.i_width = 720;
     fmt.video.i_height = 576;
-    fmt.video.i_sar_num = 1;
-    fmt.video.i_sar_den = 1;
+    fmt.video.i_sar_num = 16 * fmt.video.i_height;
+    fmt.video.i_sar_den = 9 * fmt.video.i_width;
 
     msg_Dbg( p_demux, "added new video es %4.4s %dx%d",
              (char*)&fmt.i_codec, fmt.video.i_width, fmt.video.i_height );