Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6213e4ac
Commit
6213e4ac
authored
Aug 02, 2012
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blend: extra check to avoid possible crash
parent
7bdcbe8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/video_filter/blend.cpp
modules/video_filter/blend.cpp
+6
-0
No files found.
modules/video_filter/blend.cpp
View file @
6213e4ac
...
...
@@ -607,6 +607,12 @@ static void Blend(filter_t *filter,
{
filter_sys_t
*
sys
=
filter
->
p_sys
;
if
(
x_offset
<
0
||
y_offset
<
0
)
{
msg_Err
(
filter
,
"Blend cannot process negative offsets"
);
return
;
}
int
width
=
__MIN
((
int
)
filter
->
fmt_out
.
video
.
i_visible_width
-
x_offset
,
(
int
)
filter
->
fmt_in
.
video
.
i_visible_width
);
int
height
=
__MIN
((
int
)
filter
->
fmt_out
.
video
.
i_visible_height
-
y_offset
,
...
...
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