Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b4cc7d67
Commit
b4cc7d67
authored
May 04, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_cover_rect: clip rectangle if it is partly outside the input
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0eec40b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vf_cover_rect.c
libavfilter/vf_cover_rect.c
+11
-0
No files found.
libavfilter/vf_cover_rect.c
View file @
b4cc7d67
...
...
@@ -163,6 +163,17 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
ff_filter_frame
(
ctx
->
outputs
[
0
],
in
);
}
if
(
x
<
0
)
{
w
+=
x
;
x
=
0
;
}
if
(
y
<
0
)
{
h
+=
y
;
y
=
0
;
}
w
=
FFMIN
(
w
,
in
->
width
-
x
);
h
=
FFMIN
(
h
,
in
->
height
-
y
);
if
(
w
>
in
->
width
||
h
>
in
->
height
||
w
<=
0
||
h
<=
0
)
return
AVERROR
(
EINVAL
);
...
...
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