Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
30cfbde3
Commit
30cfbde3
authored
Oct 14, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4 demux: fix crash
Don't call with NULL Remove unused return value
parent
e40fcf32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+5
-4
No files found.
modules/demux/mp4/mp4.c
View file @
30cfbde3
...
...
@@ -2663,7 +2663,7 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
#endif
}
static
int
FreeAndResetChunk
(
mp4_chunk_t
*
ck
)
static
void
FreeAndResetChunk
(
mp4_chunk_t
*
ck
)
{
free
(
ck
->
p_sample_count_dts
);
free
(
ck
->
p_sample_delta_dts
);
...
...
@@ -2674,7 +2674,6 @@ static int FreeAndResetChunk( mp4_chunk_t *ck )
free
(
ck
->
p_sample_data
[
i
]
);
free
(
ck
->
p_sample_data
);
memset
(
ck
,
0
,
sizeof
(
mp4_chunk_t
)
);
return
VLC_SUCCESS
;
}
/****************************************************************************
...
...
@@ -2704,8 +2703,10 @@ static void MP4_TrackDestroy( mp4_track_t *p_track )
}
}
FREENULL
(
p_track
->
chunk
);
FreeAndResetChunk
(
p_track
->
cchunk
);
FREENULL
(
p_track
->
cchunk
);
if
(
p_track
->
cchunk
)
{
FreeAndResetChunk
(
p_track
->
cchunk
);
FREENULL
(
p_track
->
cchunk
);
}
if
(
!
p_track
->
i_sample_size
)
{
...
...
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