Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0bf16564
Commit
0bf16564
authored
Aug 21, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check a few mp4 mallocs.
parent
be309572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+5
-0
No files found.
modules/demux/mp4/mp4.c
View file @
0bf16564
...
@@ -1270,6 +1270,9 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
...
@@ -1270,6 +1270,9 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
ck
->
p_sample_count_dts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
ck
->
p_sample_count_dts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
ck
->
p_sample_delta_dts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
ck
->
p_sample_delta_dts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
if
(
!
ck
->
p_sample_count_dts
||
!
ck
->
p_sample_delta_dts
)
return
VLC_ENOMEM
;
/* now copy */
/* now copy */
i_sample_count
=
ck
->
i_sample_count
;
i_sample_count
=
ck
->
i_sample_count
;
for
(
i
=
0
;
i
<
i_entry
;
i
++
)
for
(
i
=
0
;
i
<
i_entry
;
i
++
)
...
@@ -1333,6 +1336,8 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
...
@@ -1333,6 +1336,8 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
/* allocate them */
/* allocate them */
ck
->
p_sample_count_pts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
ck
->
p_sample_count_pts
=
calloc
(
i_entry
,
sizeof
(
uint32_t
)
);
ck
->
p_sample_offset_pts
=
calloc
(
i_entry
,
sizeof
(
int32_t
)
);
ck
->
p_sample_offset_pts
=
calloc
(
i_entry
,
sizeof
(
int32_t
)
);
if
(
!
ck
->
p_sample_count_pts
||
!
ck
->
p_sample_offset_pts
)
return
VLC_ENOMEM
;
/* now copy */
/* now copy */
i_sample_count
=
ck
->
i_sample_count
;
i_sample_count
=
ck
->
i_sample_count
;
...
...
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