Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
e1e9e7b7
Commit
e1e9e7b7
authored
May 15, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./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
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
plugins/spudec/spu_decoder.c
plugins/spudec/spu_decoder.c
+10
-9
No files found.
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/12 20:56:34 massiot
Exp $
* $Id: spu_decoder.c,v 1.
20 2002/05/15 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