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
ccf4ab8c
Commit
ccf4ab8c
authored
Oct 13, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_edgedetect: check if height is big enough
Fixes #8260
parent
4f4334bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vf_edgedetect.c
libavfilter/vf_edgedetect.c
+6
-3
No files found.
libavfilter/vf_edgedetect.c
View file @
ccf4ab8c
...
...
@@ -150,6 +150,7 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
int
i
,
j
;
memcpy
(
dst
,
src
,
w
);
dst
+=
dst_linesize
;
src
+=
src_linesize
;
if
(
h
>
1
)
memcpy
(
dst
,
src
,
w
);
dst
+=
dst_linesize
;
src
+=
src_linesize
;
for
(
j
=
2
;
j
<
h
-
2
;
j
++
)
{
dst
[
0
]
=
src
[
0
];
...
...
@@ -180,7 +181,9 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
dst
+=
dst_linesize
;
src
+=
src_linesize
;
}
if
(
h
>
2
)
memcpy
(
dst
,
src
,
w
);
dst
+=
dst_linesize
;
src
+=
src_linesize
;
if
(
h
>
3
)
memcpy
(
dst
,
src
,
w
);
}
...
...
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