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
9bca8e53
Commit
9bca8e53
authored
Sep 11, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/matroskaenc: use av_realloc_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e5290823
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
matroskaenc.c
libavformat/matroskaenc.c
+2
-2
No files found.
libavformat/matroskaenc.c
View file @
9bca8e53
...
...
@@ -307,7 +307,7 @@ static int mkv_add_seekhead_entry(mkv_seekhead *seekhead, unsigned int elementid
if
(
seekhead
->
max_entries
>
0
&&
seekhead
->
max_entries
<=
seekhead
->
num_entries
)
return
-
1
;
entries
=
av_realloc
(
entries
,
(
seekhead
->
num_entries
+
1
)
*
sizeof
(
mkv_seekhead_entry
));
entries
=
av_realloc
_array
(
entries
,
seekhead
->
num_entries
+
1
,
sizeof
(
mkv_seekhead_entry
));
if
(
entries
==
NULL
)
return
AVERROR
(
ENOMEM
);
...
...
@@ -388,7 +388,7 @@ static int mkv_add_cuepoint(mkv_cues *cues, int stream, int64_t ts, int64_t clus
if
(
ts
<
0
)
return
0
;
entries
=
av_realloc
(
entries
,
(
cues
->
num_entries
+
1
)
*
sizeof
(
mkv_cuepoint
));
entries
=
av_realloc
_array
(
entries
,
cues
->
num_entries
+
1
,
sizeof
(
mkv_cuepoint
));
if
(
entries
==
NULL
)
return
AVERROR
(
ENOMEM
);
...
...
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