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
88a46fa8
Commit
88a46fa8
authored
Jan 13, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowenc-test: use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
482761b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
snowenc.c
libavcodec/snowenc.c
+2
-2
No files found.
libavcodec/snowenc.c
View file @
88a46fa8
...
...
@@ -1919,8 +1919,8 @@ int main(void){
s
.
spatial_decomposition_count
=
6
;
s
.
spatial_decomposition_type
=
1
;
s
.
temp_dwt_buffer
=
av_mallocz
(
width
*
sizeof
(
DWTELEM
));
s
.
temp_idwt_buffer
=
av_mallocz
(
width
*
sizeof
(
IDWTELEM
));
s
.
temp_dwt_buffer
=
av_mallocz
_array
(
width
,
sizeof
(
DWTELEM
));
s
.
temp_idwt_buffer
=
av_mallocz
_array
(
width
,
sizeof
(
IDWTELEM
));
if
(
!
s
.
temp_dwt_buffer
||
!
s
.
temp_idwt_buffer
)
{
fprintf
(
stderr
,
"Failed to allocate memory
\n
"
);
...
...
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