Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
ad92c4f6
Commit
ad92c4f6
authored
Apr 14, 2014
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: read fragmented movie duration
parent
7548510c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+8
-0
No files found.
modules/demux/mp4/mp4.c
View file @
ad92c4f6
...
...
@@ -568,6 +568,14 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_duration
=
p_mvhd
->
data
.
p_mvhd
->
i_duration
;
}
/* Try in mehd if fragmented */
if
(
p_sys
->
i_duration
==
0
)
{
MP4_Box_t
*
p_mehd
=
MP4_BoxGet
(
p_demux
->
p_sys
->
p_root
,
"moov/mvex/mehd"
);
if
(
p_mehd
)
p_sys
->
i_duration
=
p_mehd
->
data
.
p_mehd
->
i_fragment_duration
;
}
if
(
!
(
p_sys
->
i_tracks
=
MP4_BoxCount
(
p_sys
->
p_root
,
"/moov/trak"
)
)
)
{
msg_Err
(
p_demux
,
"cannot find any /moov/trak"
);
...
...
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