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
9375f500
Commit
9375f500
authored
Jun 23, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sonic: use av_freep() as its safer than av_free()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
69d0a292
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sonic.c
libavcodec/sonic.c
+11
-11
No files found.
libavcodec/sonic.c
View file @
9375f500
...
...
@@ -602,13 +602,13 @@ static av_cold int sonic_encode_close(AVCodecContext *avctx)
int
i
;
for
(
i
=
0
;
i
<
s
->
channels
;
i
++
)
av_free
(
s
->
coded_samples
[
i
]);
av_free
p
(
&
s
->
coded_samples
[
i
]);
av_free
(
s
->
predictor_k
);
av_free
(
s
->
tail
);
av_free
(
s
->
tap_quant
);
av_free
(
s
->
window
);
av_free
(
s
->
int_samples
);
av_free
p
(
&
s
->
predictor_k
);
av_free
p
(
&
s
->
tail
);
av_free
p
(
&
s
->
tap_quant
);
av_free
p
(
&
s
->
window
);
av_free
p
(
&
s
->
int_samples
);
return
0
;
}
...
...
@@ -838,14 +838,14 @@ static av_cold int sonic_decode_close(AVCodecContext *avctx)
SonicContext
*
s
=
avctx
->
priv_data
;
int
i
;
av_free
(
s
->
int_samples
);
av_free
(
s
->
tap_quant
);
av_free
(
s
->
predictor_k
);
av_free
p
(
&
s
->
int_samples
);
av_free
p
(
&
s
->
tap_quant
);
av_free
p
(
&
s
->
predictor_k
);
for
(
i
=
0
;
i
<
s
->
channels
;
i
++
)
{
av_free
(
s
->
predictor_state
[
i
]);
av_free
(
s
->
coded_samples
[
i
]);
av_free
p
(
&
s
->
predictor_state
[
i
]);
av_free
p
(
&
s
->
coded_samples
[
i
]);
}
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