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
f5fbbbc0
Commit
f5fbbbc0
authored
Jan 07, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxf: Drop unnecessary checks
av_reallocp_array does the check already.
parent
aa0cb16c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
mxfdec.c
libavformat/mxfdec.c
+0
-5
No files found.
libavformat/mxfdec.c
View file @
f5fbbbc0
...
@@ -418,9 +418,6 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
...
@@ -418,9 +418,6 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
uint32_t
nb_essence_containers
;
uint32_t
nb_essence_containers
;
int
err
;
int
err
;
if
(
mxf
->
partitions_count
+
1
>=
UINT_MAX
/
sizeof
(
*
mxf
->
partitions
))
return
AVERROR
(
ENOMEM
);
if
((
err
=
av_reallocp_array
(
&
mxf
->
partitions
,
mxf
->
partitions_count
+
1
,
if
((
err
=
av_reallocp_array
(
&
mxf
->
partitions
,
mxf
->
partitions_count
+
1
,
sizeof
(
*
mxf
->
partitions
)))
<
0
)
{
sizeof
(
*
mxf
->
partitions
)))
<
0
)
{
mxf
->
partitions_count
=
0
;
mxf
->
partitions_count
=
0
;
...
@@ -552,8 +549,6 @@ static int mxf_add_metadata_set(MXFContext *mxf, void *metadata_set)
...
@@ -552,8 +549,6 @@ static int mxf_add_metadata_set(MXFContext *mxf, void *metadata_set)
{
{
int
err
;
int
err
;
if
(
mxf
->
metadata_sets_count
+
1
>=
UINT_MAX
/
sizeof
(
*
mxf
->
metadata_sets
))
return
AVERROR
(
ENOMEM
);
if
((
err
=
av_reallocp_array
(
&
mxf
->
metadata_sets
,
mxf
->
metadata_sets_count
+
1
,
if
((
err
=
av_reallocp_array
(
&
mxf
->
metadata_sets
,
mxf
->
metadata_sets_count
+
1
,
sizeof
(
*
mxf
->
metadata_sets
)))
<
0
)
{
sizeof
(
*
mxf
->
metadata_sets
)))
<
0
)
{
mxf
->
metadata_sets_count
=
0
;
mxf
->
metadata_sets_count
=
0
;
...
...
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