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
da621ffb
Commit
da621ffb
authored
Apr 22, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wma: use av_malloc_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
658f5d1f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wma.c
libavcodec/wma.c
+4
-4
No files found.
libavcodec/wma.c
View file @
da621ffb
...
...
@@ -45,10 +45,10 @@ static av_cold void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
init_vlc
(
vlc
,
VLCBITS
,
n
,
table_bits
,
1
,
1
,
table_codes
,
4
,
4
,
0
);
run_table
=
av_malloc
(
n
*
sizeof
(
uint16_t
));
level_table
=
av_malloc
(
n
*
sizeof
(
uint16_t
));
flevel_table
=
av_malloc
(
n
*
sizeof
(
*
flevel_table
));
int_table
=
av_malloc
(
n
*
sizeof
(
uint16_t
));
run_table
=
av_malloc
_array
(
n
,
sizeof
(
uint16_t
));
level_table
=
av_malloc
_array
(
n
,
sizeof
(
uint16_t
));
flevel_table
=
av_malloc
_array
(
n
,
sizeof
(
*
flevel_table
));
int_table
=
av_malloc
_array
(
n
,
sizeof
(
uint16_t
));
i
=
2
;
level
=
1
;
k
=
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