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
8fe59240
Commit
8fe59240
authored
Mar 02, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libxvid: use av_freep() for saftey
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6a8f6c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libxvid.c
libavcodec/libxvid.c
+5
-5
No files found.
libavcodec/libxvid.c
View file @
8fe59240
...
@@ -739,8 +739,8 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
...
@@ -739,8 +739,8 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
av_freep
(
&
avctx
->
extradata
);
av_freep
(
&
avctx
->
extradata
);
if
(
x
->
twopassbuffer
!=
NULL
)
{
if
(
x
->
twopassbuffer
!=
NULL
)
{
av_free
(
x
->
twopassbuffer
);
av_free
p
(
&
x
->
twopassbuffer
);
av_free
(
x
->
old_twopassbuffer
);
av_free
p
(
&
x
->
old_twopassbuffer
);
avctx
->
stats_out
=
NULL
;
avctx
->
stats_out
=
NULL
;
}
}
if
(
x
->
twopassfd
>=
0
)
{
if
(
x
->
twopassfd
>=
0
)
{
...
@@ -748,9 +748,9 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
...
@@ -748,9 +748,9 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
close
(
x
->
twopassfd
);
close
(
x
->
twopassfd
);
x
->
twopassfd
=
-
1
;
x
->
twopassfd
=
-
1
;
}
}
av_free
(
x
->
twopassfile
);
av_free
p
(
&
x
->
twopassfile
);
av_free
(
x
->
intra_matrix
);
av_free
p
(
&
x
->
intra_matrix
);
av_free
(
x
->
inter_matrix
);
av_free
p
(
&
x
->
inter_matrix
);
return
0
;
return
0
;
}
}
...
...
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