Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
dd4d1605
Commit
dd4d1605
authored
Dec 09, 2004
by
gbazin
Browse files
* modules/codec/dvbsub.c: extra sanity check for CLUT decoding (patch by timok).
parent
cdbc7092
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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