Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6fa56f0c
Commit
6fa56f0c
authored
Apr 02, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Don't ignore blank alpha pallettes. Tested with all my DVDs. Fixes #560
parent
0bd6bfaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
modules/codec/spudec/parse.c
modules/codec/spudec/parse.c
+4
-18
No files found.
modules/codec/spudec/parse.c
View file @
6fa56f0c
...
...
@@ -243,24 +243,10 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
return
VLC_EGENERIC
;
}
pi_alpha
[
3
]
=
(
p_sys
->
buffer
[
i_index
+
1
]
>>
4
)
&
0x0f
;
pi_alpha
[
2
]
=
(
p_sys
->
buffer
[
i_index
+
1
])
&
0x0f
;
pi_alpha
[
1
]
=
(
p_sys
->
buffer
[
i_index
+
2
]
>>
4
)
&
0x0f
;
pi_alpha
[
0
]
=
(
p_sys
->
buffer
[
i_index
+
2
])
&
0x0f
;
/* Ignore blank alpha palette. Sometimes spurious blank
* alpha palettes are present - dunno why. */
if
(
pi_alpha
[
0
]
|
pi_alpha
[
1
]
|
pi_alpha
[
2
]
|
pi_alpha
[
3
]
)
{
p_spu_data
->
pi_alpha
[
0
]
=
pi_alpha
[
0
];
p_spu_data
->
pi_alpha
[
1
]
=
pi_alpha
[
1
];
p_spu_data
->
pi_alpha
[
2
]
=
pi_alpha
[
2
];
p_spu_data
->
pi_alpha
[
3
]
=
pi_alpha
[
3
];
}
else
{
msg_Warn
(
p_dec
,
"ignoring blank alpha palette"
);
}
p_spu_data
->
pi_alpha
[
3
]
=
(
p_sys
->
buffer
[
i_index
+
1
]
>>
4
)
&
0x0f
;
p_spu_data
->
pi_alpha
[
2
]
=
(
p_sys
->
buffer
[
i_index
+
1
])
&
0x0f
;
p_spu_data
->
pi_alpha
[
1
]
=
(
p_sys
->
buffer
[
i_index
+
2
]
>>
4
)
&
0x0f
;
p_spu_data
->
pi_alpha
[
0
]
=
(
p_sys
->
buffer
[
i_index
+
2
])
&
0x0f
;
i_index
+=
3
;
break
;
...
...
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