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
e91ea1f9
Commit
e91ea1f9
authored
Nov 14, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libass: avoid negative index in array
parent
a0ff500b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/codec/libass.c
modules/codec/libass.c
+7
-4
No files found.
modules/codec/libass.c
View file @
e91ea1f9
...
@@ -627,6 +627,8 @@ static int BuildRegions( rectangle_t *p_region, int i_max_region, ASS_Image *p_i
...
@@ -627,6 +627,8 @@ static int BuildRegions( rectangle_t *p_region, int i_max_region, ASS_Image *p_i
#ifdef DEBUG_REGION
#ifdef DEBUG_REGION
msg_Err
(
p_spu
,
"Merging %d and %d"
,
i_best_i
,
i_best_j
);
msg_Err
(
p_spu
,
"Merging %d and %d"
,
i_best_i
,
i_best_j
);
#endif
#endif
if
(
i_best_j
>=
0
&&
i_best_i
>=
0
)
{
r_add
(
&
region
[
i_best_i
],
&
region
[
i_best_j
]
);
r_add
(
&
region
[
i_best_i
],
&
region
[
i_best_j
]
);
if
(
i_best_j
+
1
<
i_region
)
if
(
i_best_j
+
1
<
i_region
)
...
@@ -634,6 +636,7 @@ static int BuildRegions( rectangle_t *p_region, int i_max_region, ASS_Image *p_i
...
@@ -634,6 +636,7 @@ static int BuildRegions( rectangle_t *p_region, int i_max_region, ASS_Image *p_i
i_region
--
;
i_region
--
;
}
}
}
}
}
/* */
/* */
for
(
int
n
=
0
;
n
<
i_region
;
n
++
)
for
(
int
n
=
0
;
n
<
i_region
;
n
++
)
...
...
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