]> git.sesse.net Git - vlc/commitdiff
* modules/codec/svcdsub.c,cvdsub.c: fixed Cr/Cb inversion in palette.
authorGildas Bazin <gbazin@videolan.org>
Sun, 19 Dec 2004 20:46:27 +0000 (20:46 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 19 Dec 2004 20:46:27 +0000 (20:46 +0000)
modules/codec/cvdsub.c
modules/codec/svcdsub.c

index 477e99abc9682c7ccdbd4fa31e7d131d98728d74..2f7e0dc97816b2cf640bcef765e549a7765d84d3 100644 (file)
@@ -392,9 +392,9 @@ static void ParseMetaInfo( decoder_t *p_dec, block_t *p_spu  )
                      (int)v, (int)p[1], (int)p[2], (int)p[3] );
 #endif
 
-            p_sys->p_palette[v][0] = p[1];
-            p_sys->p_palette[v][1] = p[2];
-            p_sys->p_palette[v][2] = p[3];
+            p_sys->p_palette[v][0] = p[1]; /* Y */
+            p_sys->p_palette[v][1] = p[3]; /* Cr / V */
+            p_sys->p_palette[v][2] = p[2]; /* Cb / U */
             break;
         }
 
@@ -411,9 +411,9 @@ static void ParseMetaInfo( decoder_t *p_dec, block_t *p_spu  )
 #endif
 
             /* Highlight Palette */
-            p_sys->p_palette_highlight[v][0] = p[1];
-            p_sys->p_palette_highlight[v][1] = p[2];
-            p_sys->p_palette_highlight[v][2] = p[3];
+            p_sys->p_palette_highlight[v][0] = p[1]; /* Y */
+            p_sys->p_palette_highlight[v][1] = p[3]; /* Cr / V */
+            p_sys->p_palette_highlight[v][2] = p[2]; /* Cb / U */
             break;
         }
 
index 7e00ea08ab7c21a7754aedab80ffa15675861ffd..0e6778aba55de453326abb18809501dc7ddee920 100644 (file)
@@ -356,10 +356,10 @@ static void ParseHeader( decoder_t *p_dec, block_t *p_block )
 
     for( i = 0; i < 4; i++ )
     {
-        p_sys->p_palette[i][0] = *p++;
-        p_sys->p_palette[i][1] = *p++;
-        p_sys->p_palette[i][2] = *p++;
-        p_sys->p_palette[i][3] = *p++;
+        p_sys->p_palette[i][0] = *p++; /* Y */
+        p_sys->p_palette[i][2] = *p++; /* Cr / V */
+        p_sys->p_palette[i][1] = *p++; /* Cb / U */
+        p_sys->p_palette[i][3] = *p++; /* T */
     }
 
     i_cmd = *p++;