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
b4902c11
Commit
b4902c11
authored
Aug 18, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av_free* cleanup
Originally committed as revision 6019 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0b23d689
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
watermark.c
vhook/watermark.c
+3
-10
No files found.
vhook/watermark.c
View file @
b4902c11
...
...
@@ -102,8 +102,7 @@ void Release(void *ctx)
if
(
ci
)
get_watermark_picture
(
ci
,
1
);
if
(
ctx
)
av_free
(
ctx
);
av_free
(
ctx
);
}
...
...
@@ -556,14 +555,8 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
if
(
0
!=
cleanup
)
{
// Free the RGB image
if
(
0
!=
ci
->
buffer
)
{
av_free
(
ci
->
buffer
);
ci
->
buffer
=
0
;
}
if
(
0
!=
ci
->
pFrameRGB
)
{
av_free
(
ci
->
pFrameRGB
);
ci
->
pFrameRGB
=
0
;
}
av_freep
(
&
ci
->
buffer
);
av_freep
(
&
ci
->
pFrameRGB
);
// Close the codec
if
(
0
!=
ci
->
pCodecCtx
)
{
...
...
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