]> git.sesse.net Git - vlc/commitdiff
Fixed zvbi subpictures AR.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 5 Jan 2012 20:52:59 +0000 (21:52 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 5 Jan 2012 22:02:50 +0000 (23:02 +0100)
modules/codec/zvbi.c

index 3b02ae9c0ec75d34ba84fd694daf2162ac6f1d52..e8f8cf4447e6088c84755a8b772c09a278ad668a 100644 (file)
@@ -462,18 +462,15 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
     }
 
     memset( &fmt, 0, sizeof(video_format_t) );
-    fmt.i_chroma = b_text ? VLC_CODEC_TEXT :
-                                   VLC_CODEC_RGBA;
+    fmt.i_chroma = b_text ? VLC_CODEC_TEXT : VLC_CODEC_RGBA;
+    fmt.i_sar_num = 0;
+    fmt.i_sar_den = 1;
     if( b_text )
     {
         fmt.i_bits_per_pixel = 0;
-        fmt.i_sar_num = 0;
-        fmt.i_sar_den = 0;
     }
     else
     {
-        fmt.i_sar_num = 1;
-        fmt.i_sar_den = 1;
         fmt.i_width = fmt.i_visible_width = i_columns * 12;
         fmt.i_height = fmt.i_visible_height = i_rows * 10;
         fmt.i_bits_per_pixel = 32;