Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
Steve Lhomme
VLC
Commits
b32c50d9
Commit
b32c50d9
authored
May 02, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: don't use mvhd duration for seek
parent
16f82c57
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 @
b32c50d9
...
...
@@ -1523,16 +1523,17 @@ static int LeafSeekToTime( demux_t *p_demux, mtime_t i_nztime )
p_sys
->
b_index_probed
=
true
;
}
if
(
(
uint64_t
)
MP4_rescale
(
i_nztime
,
CLOCK_FREQ
,
p_sys
->
i_timescale
)
<
p_sys
->
i_moov_duration
)
const
unsigned
i_seek_track_index
=
GetSeekTrackIndex
(
p_sys
);
const
unsigned
i_seek_track_ID
=
p_sys
->
track
[
i_seek_track_index
].
i_track_ID
;
if
(
MP4_rescale
(
i_nztime
,
CLOCK_FREQ
,
p_sys
->
track
[
i_seek_track_index
].
i_timescale
)
<
GetMoovTrackDuration
(
p_sys
,
i_seek_track_ID
)
)
{
i64
=
p_sys
->
p_moov
->
i_pos
;
i_segment_type
=
ATOM_moov
;
}
else
{
const
unsigned
i_seek_track_index
=
GetSeekTrackIndex
(
p_sys
);
const
unsigned
i_seek_track_ID
=
p_sys
->
track
[
i_seek_track_index
].
i_track_ID
;
bool
b_buildindex
=
false
;
mtime_t
i_sync_time
=
i_nztime
;
if
(
LeafGetMoofByTfraIndex
(
p_demux
,
i_nztime
,
i_seek_track_ID
,
&
i64
,
&
i_sync_time
)
==
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