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
e1e9e7b7
Commit
e1e9e7b7
authored
May 15, 2002
by
Sam Hocevar
Browse files
* ./plugins/spudec/spu_decoder.c: fixed endianness issue; subtitles colors
should be OK now.
parent
04ca15f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/spudec/spu_decoder.c
View file @
e1e9e7b7
...
...
@@ -2,7 +2,7 @@
* spu_decoder.c : spu decoder thread
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: spu_decoder.c,v 1.
19
2002/05/1
2 20:56:34 massiot
Exp $
* $Id: spu_decoder.c,v 1.
20
2002/05/1
5 00:40:26 sam
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Rudolf Cornelissen <rag.cornelissen@inter.nl.net>
...
...
@@ -374,8 +374,6 @@ static int ParseControlSequences( spudec_thread_t *p_spudec,
u8
i_command
;
int
i_date
;
/* Dummy stuff */
u8
*
pi_color
;
int
i
;
/* XXX: temporary variables */
...
...
@@ -433,15 +431,18 @@ static int ParseControlSequences( spudec_thread_t *p_spudec,
if
(
p_spudec
->
p_config
->
p_demux_data
&&
*
(
int
*
)
p_spudec
->
p_config
->
p_demux_data
==
0xBeeF
)
{
u32
i_color
;
p_spu
->
p_sys
->
b_palette
=
1
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
pi_color
=
(
void
*
)
p_spudec
->
p_config
->
p_demux_data
+
sizeof
(
int
)
+
4
*
sizeof
(
u8
)
*
GetBits
(
&
p_spudec
->
bit_stream
,
4
);
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
0
]
=
pi_color
[
2
];
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
1
]
=
pi_color
[
0
];
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
2
]
=
pi_color
[
1
];
i_color
=
((
u32
*
)((
void
*
)
p_spudec
->
p_config
->
p_demux_data
+
sizeof
(
int
)))[
GetBits
(
&
p_spudec
->
bit_stream
,
4
)
];
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
0
]
=
(
i_color
>>
16
)
&
0xff
;
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
1
]
=
(
i_color
>>
0
)
&
0xff
;
p_spu
->
p_sys
->
pi_yuv
[
3
-
i
][
2
]
=
(
i_color
>>
8
)
&
0xff
;
}
}
else
...
...
Write
Preview
Markdown
is supported
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