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
8c0687ab
Commit
8c0687ab
authored
Oct 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_removelogo: use av_freep() for saftey
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e4d45673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_removelogo.c
libavfilter/vf_removelogo.c
+4
-4
No files found.
libavfilter/vf_removelogo.c
View file @
8c0687ab
...
...
@@ -235,8 +235,8 @@ static int load_mask(uint8_t **mask, int *w, int *h,
av_image_copy_plane
(
*
mask
,
*
w
,
gray_data
[
0
],
gray_linesize
[
0
],
*
w
,
*
h
);
end:
av_free
(
src_data
[
0
]);
av_free
(
gray_data
[
0
]);
av_free
p
(
&
src_data
[
0
]);
av_free
p
(
&
gray_data
[
0
]);
return
ret
;
}
...
...
@@ -540,9 +540,9 @@ static av_cold void uninit(AVFilterContext *ctx)
for
(
a
=
0
;
a
<=
s
->
max_mask_size
;
a
++
)
{
/* Loop through each scanline in a mask. */
for
(
b
=
-
a
;
b
<=
a
;
b
++
)
{
av_free
(
s
->
mask
[
a
][
b
+
a
]);
/* Free a scanline. */
av_free
p
(
&
s
->
mask
[
a
][
b
+
a
]);
/* Free a scanline. */
}
av_free
(
s
->
mask
[
a
]);
av_free
p
(
&
s
->
mask
[
a
]);
}
/* Free the array of pointers pointing to the masks. */
av_freep
(
&
s
->
mask
);
...
...
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