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
24876369
Commit
24876369
authored
Jun 02, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: don't parse data if trun is missing (cid #1219918)
parent
653e43c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+9
-9
No files found.
modules/demux/mp4/mp4.c
View file @
24876369
...
...
@@ -5318,18 +5318,18 @@ static int LeafParseMDATwithMOOF( demux_t *p_demux, MP4_Box_t *p_moof )
}
}
}
const
MP4_Box_data_trun_t
*
p_trun_data
=
p_track
->
context
.
BOXDATA
(
p_trun
);
const
MP4_Box_data_trun_t
*
p_trun_data
=
p_track
->
context
.
BOXDATA
(
p_trun
);
/* NOW PARSE TRUN WITH MDAT */
int
i_ret
=
LeafParseTRUN
(
p_demux
,
p_track
,
i_trun_sample_default_duration
,
i_trun_sample_default_size
,
p_trun_data
,
&
p_sys
->
context
.
i_mdatbytesleft
);
if
(
i_ret
!=
VLC_SUCCESS
)
goto
end
;
/* NOW PARSE TRUN WITH MDAT */
int
i_ret
=
LeafParseTRUN
(
p_demux
,
p_track
,
i_trun_sample_default_duration
,
i_trun_sample_default_size
,
p_trun_data
,
&
p_sys
->
context
.
i_mdatbytesleft
);
if
(
i_ret
!=
VLC_SUCCESS
)
goto
end
;
p_track
->
context
.
p_trun
=
p_track
->
context
.
p_trun
->
p_next
;
}
p_track
->
context
.
p_trun
=
p_track
->
context
.
p_trun
->
p_next
;
if
(
p_sys
->
context
.
i_mdatbytesleft
==
0
)
p_sys
->
context
.
i_current_box_type
=
0
;
return
VLC_SUCCESS
;
...
...
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