[vlc-commits] demux: ts: don't skip looking up dts on seek if af
Francois Cartegnie
git at videolan.org
Fri Nov 17 14:34:35 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 17 14:29:18 2017 +0100| [a141bcc837a59d34cd50d05cba50aca6d9390725] | committer: Francois Cartegnie
demux: ts: don't skip looking up dts on seek if af
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a141bcc837a59d34cd50d05cba50aca6d9390725
---
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 03bc685539..309f4f5cad 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1929,7 +1929,8 @@ static int SeekToTime( demux_t *p_demux, const ts_pmt_t *p_pmt, int64_t i_scaled
i_skip += 1 + __MIN(p_pkt->p_buffer[4], 182);
}
}
- else
+
+ if( i_pcr == -1 )
{
mtime_t i_dts = -1;
mtime_t i_pts = -1;
More information about the vlc-commits
mailing list