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
28706178
Commit
28706178
authored
May 27, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vp3: use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0674da99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vp3.c
libavcodec/vp3.c
+7
-7
No files found.
libavcodec/vp3.c
View file @
28706178
...
...
@@ -1659,17 +1659,17 @@ static av_cold int allocate_tables(AVCodecContext *avctx)
c_fragment_count
=
s
->
fragment_width
[
1
]
*
s
->
fragment_height
[
1
];
s
->
superblock_coding
=
av_mallocz
(
s
->
superblock_count
);
s
->
all_fragments
=
av_mallocz
(
s
->
fragment_count
*
sizeof
(
Vp3Fragment
));
s
->
all_fragments
=
av_mallocz
_array
(
s
->
fragment_count
,
sizeof
(
Vp3Fragment
));
s
->
coded_fragment_list
[
0
]
=
av_mallocz
(
s
->
fragment_count
*
sizeof
(
int
));
s
->
coded_fragment_list
[
0
]
=
av_mallocz
_array
(
s
->
fragment_count
,
sizeof
(
int
));
s
->
dct_tokens_base
=
av_mallocz
(
64
*
s
->
fragment_count
*
sizeof
(
*
s
->
dct_tokens_base
));
s
->
motion_val
[
0
]
=
av_mallocz
(
y_fragment_count
*
sizeof
(
*
s
->
motion_val
[
0
]));
s
->
motion_val
[
1
]
=
av_mallocz
(
c_fragment_count
*
sizeof
(
*
s
->
motion_val
[
1
]));
s
->
dct_tokens_base
=
av_mallocz
_array
(
s
->
fragment_count
,
64
*
sizeof
(
*
s
->
dct_tokens_base
));
s
->
motion_val
[
0
]
=
av_mallocz
_array
(
y_fragment_count
,
sizeof
(
*
s
->
motion_val
[
0
]));
s
->
motion_val
[
1
]
=
av_mallocz
_array
(
c_fragment_count
,
sizeof
(
*
s
->
motion_val
[
1
]));
/* work out the block mapping tables */
s
->
superblock_fragments
=
av_mallocz
(
s
->
superblock_count
*
16
*
sizeof
(
int
));
s
->
superblock_fragments
=
av_mallocz
_array
(
s
->
superblock_count
,
16
*
sizeof
(
int
));
s
->
macroblock_coding
=
av_mallocz
(
s
->
macroblock_count
+
1
);
if
(
!
s
->
superblock_coding
||
!
s
->
all_fragments
||
...
...
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