Commit febb3324 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/svcdsub.c,cvdsub.c: fixed Cr/Cb inversion in palette.

parent 2a2caf4d
......@@ -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;
}
......
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment