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
e24e5986
Commit
e24e5986
authored
Oct 11, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dct: use av_freep(), do not leave stale pointers in memory
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3521c70d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dct.c
libavcodec/dct.c
+2
-2
No files found.
libavcodec/dct.c
View file @
e24e5986
...
...
@@ -193,7 +193,7 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
s
->
csc2
=
av_malloc_array
(
n
/
2
,
sizeof
(
FFTSample
));
if
(
ff_rdft_init
(
&
s
->
rdft
,
nbits
,
inverse
==
DCT_III
)
<
0
)
{
av_free
(
s
->
csc2
);
av_free
p
(
&
s
->
csc2
);
return
-
1
;
}
...
...
@@ -218,5 +218,5 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
av_cold
void
ff_dct_end
(
DCTContext
*
s
)
{
ff_rdft_end
(
&
s
->
rdft
);
av_free
(
s
->
csc2
);
av_free
p
(
&
s
->
csc2
);
}
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