Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1a974cea
Commit
1a974cea
authored
Jan 12, 2010
by
Grigori Goronzy
Committed by
Jean-Baptiste Kempf
Jan 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libass: avoid crash on ASS_Images which have width or height == 0
parent
4812448c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/codec/libass.c
modules/codec/libass.c
+5
-3
No files found.
modules/codec/libass.c
View file @
1a974cea
...
@@ -449,6 +449,7 @@ static int BuildRegions( spu_t *p_spu, rectangle_t *p_region, int i_max_region,
...
@@ -449,6 +449,7 @@ static int BuildRegions( spu_t *p_spu, rectangle_t *p_region, int i_max_region,
#endif
#endif
for
(
p_tmp
=
p_img_list
,
i_count
=
0
;
p_tmp
!=
NULL
;
p_tmp
=
p_tmp
->
next
)
for
(
p_tmp
=
p_img_list
,
i_count
=
0
;
p_tmp
!=
NULL
;
p_tmp
=
p_tmp
->
next
)
if
(
p_tmp
->
w
>
0
&&
p_tmp
->
h
>
0
)
i_count
++
;
i_count
++
;
if
(
i_count
<=
0
)
if
(
i_count
<=
0
)
return
0
;
return
0
;
...
@@ -457,8 +458,9 @@ static int BuildRegions( spu_t *p_spu, rectangle_t *p_region, int i_max_region,
...
@@ -457,8 +458,9 @@ static int BuildRegions( spu_t *p_spu, rectangle_t *p_region, int i_max_region,
if
(
!
pp_img
)
if
(
!
pp_img
)
return
0
;
return
0
;
for
(
p_tmp
=
p_img_list
,
i_count
=
0
;
p_tmp
!=
NULL
;
p_tmp
=
p_tmp
->
next
,
i_count
++
)
for
(
p_tmp
=
p_img_list
,
i_count
=
0
;
p_tmp
!=
NULL
;
p_tmp
=
p_tmp
->
next
)
pp_img
[
i_count
]
=
p_tmp
;
if
(
p_tmp
->
w
>
0
&&
p_tmp
->
h
>
0
)
pp_img
[
i_count
++
]
=
p_tmp
;
/* */
/* */
const
int
i_w_inc
=
__MAX
(
(
i_width
+
49
)
/
50
,
32
);
const
int
i_w_inc
=
__MAX
(
(
i_width
+
49
)
/
50
,
32
);
...
...
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