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
dd4d1605
Commit
dd4d1605
authored
Dec 09, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/dvbsub.c: extra sanity check for CLUT decoding (patch by timok).
parent
cdbc7092
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+3
-3
No files found.
modules/codec/dvbsub.c
View file @
dd4d1605
...
...
@@ -555,21 +555,21 @@ static void decode_clut( decoder_t *p_dec, bs_t *s )
* not have more than 1 bit set to one, but some streams don't
* respect this note. */
if
(
i_type
&
0x04
)
if
(
i_type
&
0x04
&&
i_id
<
4
)
{
p_clut
->
c_2b
[
i_id
].
Y
=
y
;
p_clut
->
c_2b
[
i_id
].
Cr
=
cr
;
p_clut
->
c_2b
[
i_id
].
Cb
=
cb
;
p_clut
->
c_2b
[
i_id
].
T
=
t
;
}
if
(
i_type
&
0x02
)
if
(
i_type
&
0x02
&&
i_id
<
16
)
{
p_clut
->
c_4b
[
i_id
].
Y
=
y
;
p_clut
->
c_4b
[
i_id
].
Cr
=
cr
;
p_clut
->
c_4b
[
i_id
].
Cb
=
cb
;
p_clut
->
c_4b
[
i_id
].
T
=
t
;
}
if
(
i_type
&
0x01
)
if
(
i_type
&
0x01
)
{
p_clut
->
c_8b
[
i_id
].
Y
=
y
;
p_clut
->
c_8b
[
i_id
].
Cr
=
cr
;
...
...
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