Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
53487268
Commit
53487268
authored
Apr 08, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c8a1f10c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cmdutils.c
cmdutils.c
+2
-2
No files found.
cmdutils.c
View file @
53487268
...
...
@@ -662,7 +662,7 @@ static void init_parse_context(OptionParseContext *octx,
memset
(
octx
,
0
,
sizeof
(
*
octx
));
octx
->
nb_groups
=
nb_groups
;
octx
->
groups
=
av_mallocz
(
sizeof
(
*
octx
->
groups
)
*
octx
->
nb_groups
);
octx
->
groups
=
av_mallocz
_array
(
octx
->
nb_groups
,
sizeof
(
*
octx
->
groups
)
);
if
(
!
octx
->
groups
)
exit_program
(
1
);
...
...
@@ -1966,7 +1966,7 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s,
if
(
!
s
->
nb_streams
)
return
NULL
;
opts
=
av_mallocz
(
s
->
nb_streams
*
sizeof
(
*
opts
));
opts
=
av_mallocz
_array
(
s
->
nb_streams
,
sizeof
(
*
opts
));
if
(
!
opts
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Could not alloc memory for stream options.
\n
"
);
...
...
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