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
dbb49a65
Commit
dbb49a65
authored
May 17, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp3: zero allocated tables
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
66f5790d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
vp3.c
libavcodec/vp3.c
+8
-8
No files found.
libavcodec/vp3.c
View file @
dbb49a65
...
...
@@ -1632,16 +1632,16 @@ static av_cold int allocate_tables(AVCodecContext *avctx)
y_fragment_count
=
s
->
fragment_width
[
0
]
*
s
->
fragment_height
[
0
];
c_fragment_count
=
s
->
fragment_width
[
1
]
*
s
->
fragment_height
[
1
];
s
->
superblock_coding
=
av_malloc
(
s
->
superblock_count
);
s
->
all_fragments
=
av_malloc
(
s
->
fragment_count
*
sizeof
(
Vp3Fragment
));
s
->
coded_fragment_list
[
0
]
=
av_malloc
(
s
->
fragment_count
*
sizeof
(
int
));
s
->
dct_tokens_base
=
av_malloc
(
64
*
s
->
fragment_count
*
sizeof
(
*
s
->
dct_tokens_base
));
s
->
motion_val
[
0
]
=
av_malloc
(
y_fragment_count
*
sizeof
(
*
s
->
motion_val
[
0
]));
s
->
motion_val
[
1
]
=
av_malloc
(
c_fragment_count
*
sizeof
(
*
s
->
motion_val
[
1
]));
s
->
superblock_coding
=
av_malloc
z
(
s
->
superblock_count
);
s
->
all_fragments
=
av_malloc
z
(
s
->
fragment_count
*
sizeof
(
Vp3Fragment
));
s
->
coded_fragment_list
[
0
]
=
av_malloc
z
(
s
->
fragment_count
*
sizeof
(
int
));
s
->
dct_tokens_base
=
av_malloc
z
(
64
*
s
->
fragment_count
*
sizeof
(
*
s
->
dct_tokens_base
));
s
->
motion_val
[
0
]
=
av_malloc
z
(
y_fragment_count
*
sizeof
(
*
s
->
motion_val
[
0
]));
s
->
motion_val
[
1
]
=
av_malloc
z
(
c_fragment_count
*
sizeof
(
*
s
->
motion_val
[
1
]));
/* work out the block mapping tables */
s
->
superblock_fragments
=
av_malloc
(
s
->
superblock_count
*
16
*
sizeof
(
int
));
s
->
macroblock_coding
=
av_malloc
(
s
->
macroblock_count
+
1
);
s
->
superblock_fragments
=
av_malloc
z
(
s
->
superblock_count
*
16
*
sizeof
(
int
));
s
->
macroblock_coding
=
av_malloc
z
(
s
->
macroblock_count
+
1
);
if
(
!
s
->
superblock_coding
||
!
s
->
all_fragments
||
!
s
->
dct_tokens_base
||
!
s
->
coded_fragment_list
[
0
]
||
!
s
->
superblock_fragments
||
!
s
->
macroblock_coding
||
...
...
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