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

Francois Cartegnie git at videolan.org
Thu Jan 4 13:28:29 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan  2 18:01:41 2018 +0100| [47d5822917f1ddaee0178072e148c58c1759e2a0] | 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

(cherry picked from commit 28adaf711f9a0b201077d2b62be2739a8d5e1a8e)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=47d5822917f1ddaee0178072e148c58c1759e2a0
---

 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 5aca8a9b8b..a1aea549cd 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -919,7 +919,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