[vlc-commits] access: live555: only use valid pcr from tracks

Francois Cartegnie git at videolan.org
Thu Aug 24 07:36:55 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Aug 24 07:36:19 2017 +0200| [b4c0bcad7cb649150612d75cb74e952d7ce6c6ef] | committer: Francois Cartegnie

access: live555: only use valid pcr from tracks

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

 modules/access/live555.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index b8d2fad870..0fd82e91c8 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1359,7 +1359,7 @@ static int Demux( demux_t *p_demux )
             /* Check for gap in pts value */
             b_need_flush |= (tk->b_flushing_discontinuity);
 
-            if( i_minpcr == VLC_TS_INVALID || i_minpcr > tk->i_pcr )
+            if( i_minpcr == VLC_TS_INVALID || ( tk->i_pcr != VLC_TS_INVALID && i_minpcr > tk->i_pcr ) )
                 i_minpcr = tk->i_pcr;
         }
 



More information about the vlc-commits mailing list