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
05406780
Commit
05406780
authored
Jul 24, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for dvdnav_get_highlight_area error.
parent
418410c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/access/dvdnav.c
modules/access/dvdnav.c
+8
-5
No files found.
modules/access/dvdnav.c
View file @
05406780
...
...
@@ -929,6 +929,7 @@ static void ButtonUpdate( demux_t *p_demux, bool b_mode )
vlc_mutex_t
*
p_mutex
=
val
.
p_address
;
dvdnav_highlight_area_t
hl
;
int32_t
i_button
;
bool
b_button_ok
;
if
(
dvdnav_get_current_highlight
(
p_sys
->
dvdnav
,
&
i_button
)
!=
DVDNAV_STATUS_OK
)
...
...
@@ -937,18 +938,20 @@ static void ButtonUpdate( demux_t *p_demux, bool b_mode )
return
;
}
b_button_ok
=
false
;
if
(
i_button
>
0
&&
i_title
==
0
)
{
int
i
;
pci_t
*
pci
=
dvdnav_get_current_nav_pci
(
p_sys
->
dvdnav
);
dvdnav_get_highlight_area
(
pci
,
i_button
,
b_mode
,
&
hl
);
b_button_ok
=
dvdnav_get_highlight_area
(
pci
,
i_button
,
b_mode
,
&
hl
)
==
DVDNAV_STATUS_OK
;
}
if
(
b_button_ok
)
{
int
i
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
uint32_t
i_yuv
=
p_sys
->
clut
[(
hl
.
palette
>>
(
16
+
i
*
4
))
&
0x0f
];
uint8_t
i_alpha
=
(
hl
.
palette
>>
(
i
*
4
))
&
0x0f
;
i_alpha
=
i_alpha
==
0xf
?
0xff
:
i_alpha
<<
4
;
uint8_t
i_alpha
=
(
(
hl
.
palette
>>
(
i
*
4
))
&
0x0f
)
*
0xff
/
0xf
;
p_sys
->
palette
[
i
][
0
]
=
(
i_yuv
>>
16
)
&
0xff
;
p_sys
->
palette
[
i
][
1
]
=
(
i_yuv
>>
0
)
&
0xff
;
...
...
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