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
523d9407
Commit
523d9407
authored
Feb 03, 2011
by
Clément Bœsch
Committed by
Mans Rullgard
Feb 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a few if (p) av_freep(&p) forms
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
a1b227bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
libxvidff.c
libavcodec/libxvidff.c
+1
-2
tree.h
libavutil/tree.h
+1
-1
swscale-test.c
libswscale/swscale-test.c
+1
-2
No files found.
libavcodec/libxvidff.c
View file @
523d9407
...
...
@@ -527,8 +527,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
xvid_encore
(
x
->
encoder_handle
,
XVID_ENC_DESTROY
,
NULL
,
NULL
);
if
(
avctx
->
extradata
!=
NULL
)
av_freep
(
&
avctx
->
extradata
);
av_freep
(
&
avctx
->
extradata
);
if
(
x
->
twopassbuffer
!=
NULL
)
{
av_free
(
x
->
twopassbuffer
);
av_free
(
x
->
old_twopassbuffer
);
...
...
libavutil/tree.h
View file @
523d9407
...
...
@@ -67,7 +67,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke
* return av_tree_insert(rootp, key, cmp, next);
* }
* void *tree_remove(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b, AVTreeNode **next)){
*
if(*next)
av_freep(next);
* av_freep(next);
* return av_tree_insert(rootp, key, cmp, next);
* }
* @endcode
...
...
libswscale/swscale-test.c
View file @
523d9407
...
...
@@ -104,8 +104,7 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h,
int
p
;
for
(
p
=
0
;
p
<
4
;
p
++
)
if
(
src
[
p
])
av_freep
(
&
src
[
p
]);
av_freep
(
&
src
[
p
]);
av_image_fill_linesizes
(
srcStride
,
srcFormat
,
srcW
);
for
(
p
=
0
;
p
<
4
;
p
++
)
{
...
...
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