[vlc-commits] demux: mp4: update PCR on seek
Francois Cartegnie
git at videolan.org
Mon Jun 2 13:14:37 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun 1 17:40:52 2014 +0200| [653e43c004e537cdd85a4fb34ca5b7af7819ab41] | committer: Francois Cartegnie
demux: mp4: update PCR on seek
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=653e43c004e537cdd85a4fb34ca5b7af7819ab41
---
modules/demux/mp4/mp4.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 0d4bab4..3da3033 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1034,7 +1034,8 @@ static int LeafSeekIntoFragment( demux_t *p_demux, mp4_fragment_t *p_fragment )
{
p_sys->track[i_track].i_time = i_time_base * p_sys->track[i_track].i_timescale / p_sys->i_timescale;
}
- p_demux->p_sys->i_time = i_time_base;
+ p_sys->i_time = i_time_base;
+ p_sys->i_pcr = VLC_TS_INVALID;
return VLC_SUCCESS;
}
@@ -1073,7 +1074,8 @@ static int LeafSeekToTime( demux_t *p_demux, mtime_t i_nztime )
{
p_sys->track[i_track].i_time = i_mooftime / CLOCK_FREQ * p_sys->track[i_track].i_timescale;
}
- p_demux->p_sys->i_time = i_mooftime / CLOCK_FREQ * p_sys->i_timescale;
+ p_sys->i_time = i_mooftime / CLOCK_FREQ * p_sys->i_timescale;
+ p_sys->i_pcr = VLC_TS_INVALID;
}
else
{
More information about the vlc-commits
mailing list