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
5a96cd64
Commit
5a96cd64
authored
May 28, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memleak / CID124 RUN2
Originally committed as revision 13512 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
57783b07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sierravmd.c
libavformat/sierravmd.c
+1
-1
No files found.
libavformat/sierravmd.c
View file @
5a96cd64
...
...
@@ -146,11 +146,11 @@ static int vmd_read_header(AVFormatContext *s,
vmd
->
frame_table
=
NULL
;
sound_buffers
=
AV_RL16
(
&
vmd
->
vmd_header
[
808
]);
raw_frame_table_size
=
vmd
->
frame_count
*
6
;
raw_frame_table
=
av_malloc
(
raw_frame_table_size
);
if
(
vmd
->
frame_count
*
vmd
->
frames_per_block
>=
UINT_MAX
/
sizeof
(
vmd_frame_t
)){
av_log
(
s
,
AV_LOG_ERROR
,
"vmd->frame_count * vmd->frames_per_block too large
\n
"
);
return
-
1
;
}
raw_frame_table
=
av_malloc
(
raw_frame_table_size
);
vmd
->
frame_table
=
av_malloc
((
vmd
->
frame_count
*
vmd
->
frames_per_block
+
sound_buffers
)
*
sizeof
(
vmd_frame_t
));
if
(
!
raw_frame_table
||
!
vmd
->
frame_table
)
{
av_free
(
raw_frame_table
);
...
...
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