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
996ff3fe
Commit
996ff3fe
authored
Oct 14, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_edgedetect: fix coverity issue
parent
634529c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vf_edgedetect.c
libavfilter/vf_edgedetect.c
+4
-2
No files found.
libavfilter/vf_edgedetect.c
View file @
996ff3fe
...
...
@@ -150,8 +150,9 @@ 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
)
if
(
h
>
1
)
{
memcpy
(
dst
,
src
,
w
);
dst
+=
dst_linesize
;
src
+=
src_linesize
;
}
for
(
j
=
2
;
j
<
h
-
2
;
j
++
)
{
dst
[
0
]
=
src
[
0
];
dst
[
1
]
=
src
[
1
];
...
...
@@ -181,8 +182,9 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
dst
+=
dst_linesize
;
src
+=
src_linesize
;
}
if
(
h
>
2
)
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