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
7ba52d76
Commit
7ba52d76
authored
Aug 16, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/misc/quartztext.c: Avoid reading a Null ptr.
parent
c09a9269
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
modules/misc/quartztext.c
modules/misc/quartztext.c
+13
-5
No files found.
modules/misc/quartztext.c
View file @
7ba52d76
...
@@ -986,14 +986,22 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region, UniCha
...
@@ -986,14 +986,22 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region, UniCha
int
i_width
=
p_filter
->
fmt_out
.
video
.
i_visible_width
;
int
i_width
=
p_filter
->
fmt_out
.
video
.
i_visible_width
;
int
i_height
=
p_filter
->
fmt_out
.
video
.
i_visible_height
;
int
i_height
=
p_filter
->
fmt_out
.
video
.
i_visible_height
;
int
i_text_align
=
p_region
->
i_align
&
0x3
;
if
(
psz_utf16_str
!=
NULL
)
if
(
!
psz_utf16_str
)
{
{
int
i_text_align
=
p_region
->
i_align
&
0x3
;
msg_Err
(
p_filter
,
"Invalid argument to RenderYUVA"
);
return
VLC_EGENERIC
;
}
p_offScreen
=
Compose
(
i_text_align
,
psz_utf16_str
,
i_text_len
,
p_offScreen
=
Compose
(
i_text_align
,
psz_utf16_str
,
i_text_len
,
i_runs
,
pi_run_lengths
,
pp_styles
,
i_runs
,
pi_run_lengths
,
pp_styles
,
i_width
,
i_height
,
&
i_textblock_height
);
i_width
,
i_height
,
&
i_textblock_height
);
if
(
!
p_offScreen
)
{
msg_Err
(
p_filter
,
"No offscreen buffer"
);
return
VLC_EGENERIC
;
}
}
uint8_t
*
p_dst_y
,
*
p_dst_u
,
*
p_dst_v
,
*
p_dst_a
;
uint8_t
*
p_dst_y
,
*
p_dst_u
,
*
p_dst_v
,
*
p_dst_a
;
...
...
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