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
a7bb22c5
Commit
a7bb22c5
authored
Jul 19, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/seek: use av_malloc_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d9ddbaa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
seek.c
libavformat/seek.c
+2
-2
No files found.
libavformat/seek.c
View file @
a7bb22c5
...
...
@@ -280,7 +280,7 @@ int64_t ff_gen_syncpoint_search(AVFormatContext *s,
}
// Initialize syncpoint structures for each stream.
sync
=
av_malloc
(
s
->
nb_streams
*
sizeof
(
AVSyncPoint
));
sync
=
av_malloc
_array
(
s
->
nb_streams
,
sizeof
(
AVSyncPoint
));
if
(
!
sync
)
// cannot allocate helper structure
return
-
1
;
...
...
@@ -402,7 +402,7 @@ AVParserState *ff_store_parser_state(AVFormatContext *s)
if
(
!
state
)
return
NULL
;
state
->
stream_states
=
av_malloc
(
sizeof
(
AVParserStreamState
)
*
s
->
nb_streams
);
state
->
stream_states
=
av_malloc
_array
(
s
->
nb_streams
,
sizeof
(
AVParserStreamState
)
);
if
(
!
state
->
stream_states
)
{
av_free
(
state
);
return
NULL
;
...
...
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