Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
febb3324
Commit
febb3324
authored
Dec 19, 2004
by
gbazin
Browse files
* modules/codec/svcdsub.c,cvdsub.c: fixed Cr/Cb inversion in palette.
parent
2a2caf4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/codec/cvdsub.c
View file @
febb3324
...
...
@@ -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
;
}
...
...
modules/codec/svcdsub.c
View file @
febb3324
...
...
@@ -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
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment