[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: mp4: report current trun sample pos in debug
Hugo Beauzée-Luyssen
gitlab at videolan.org
Tue Jun 1 09:16:36 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
2028c4b9 by Francois Cartegnie at 2021-06-01T08:47:15+00:00
demux: mp4: report current trun sample pos in debug
- - - - -
86b1ffe5 by Francois Cartegnie at 2021-06-01T08:47:15+00:00
demux: mp4: fix missing intra-trun sample increment on seek
ends up reading wrong sample size/time
refs #25784
- - - - -
1 changed file:
- modules/demux/mp4/mp4.c
Changes:
=====================================
modules/demux/mp4/mp4.c
=====================================
@@ -1841,6 +1841,7 @@ static void FragTrunSeekToTime( mp4_track_t *p_track, stime_t i_target_time )
i_time += dur;
i_pos += len;
+ i_sample++;
}
}
@@ -4570,7 +4571,7 @@ static int FragDemuxTrack( demux_t *p_demux, mp4_track_t *p_track,
msg_Dbg( p_demux, "tk(%i)=%"PRId64" mv=%"PRId64" pos=%"PRIu64, p_track->i_track_ID,
VLC_TICK_0 + MP4_rescale_mtime( i_dts, p_track->i_timescale ),
VLC_TICK_0 + MP4_rescale_mtime( i_pts, p_track->i_timescale ),
- p_track->context.i_trun_sample_pos );
+ p_track->context.i_trun_sample_pos - i_read );
#endif
if ( p_track->p_es )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8092f480fe02a6562319b18f839531a94d286ab6...86b1ffe50f7cb5cbe273f14e1c4e0ba2b3572f93
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8092f480fe02a6562319b18f839531a94d286ab6...86b1ffe50f7cb5cbe273f14e1c4e0ba2b3572f93
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list