[vlc-commits] demux: avformat: don't set pcr on tracks on seek

Francois Cartegnie git at videolan.org
Wed Jan 3 19:50:57 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan  2 18:01:41 2018 +0100| [28adaf711f9a0b201077d2b62be2739a8d5e1a8e] | committer: Francois Cartegnie

demux: avformat: don't set pcr on tracks on seek

no guarantee track will start beyond that point.

breaks hacks based pcr <> dts.
refs #19317

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28adaf711f9a0b201077d2b62be2739a8d5e1a8e
---

 modules/demux/avformat/demux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 2c4d01325f..65d4278ccd 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -908,7 +908,7 @@ static void ResetTime( demux_t *p_demux, int64_t i_time )
 
     p_sys->i_pcr = i_time;
     for( unsigned i = 0; i < p_sys->ic->nb_streams; i++ )
-        p_sys->tracks[i].i_pcr = i_time;
+        p_sys->tracks[i].i_pcr = VLC_TS_INVALID;
 
     if( i_time > VLC_TS_INVALID )
     {



More information about the vlc-commits mailing list