[vlc-commits] demux: ts: only seek on pcr for current program
Francois Cartegnie
git at videolan.org
Fri Nov 17 14:34:34 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 17 14:33:00 2017 +0100| [883a582306d606f033d437cdeb93ddef273a04cf] | committer: Francois Cartegnie
demux: ts: only seek on pcr for current program
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=883a582306d606f033d437cdeb93ddef273a04cf
---
modules/demux/mpeg/ts.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index b835753b81..03bc685539 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1924,7 +1924,8 @@ static int SeekToTime( demux_t *p_demux, const ts_pmt_t *p_pmt, int64_t i_scaled
{
if( p_pkt->i_buffer >= 4 + 2 + 5 )
{
- i_pcr = GetPCR( p_pkt );
+ if( p_pmt->i_pid_pcr == i_pid )
+ i_pcr = GetPCR( p_pkt );
i_skip += 1 + __MIN(p_pkt->p_buffer[4], 182);
}
}
More information about the vlc-commits
mailing list