[vlc-commits] demux: ps: fix length glitch (refs #9412)

Francois Cartegnie git at videolan.org
Thu Mar 9 18:07:58 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar  9 18:05:49 2017 +0100| [bcf1f6aab00c8fa34ea2f2556cfb4ad82eaaa5bc] | committer: Francois Cartegnie

demux: ps: fix length glitch (refs #9412)

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

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

diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index 726ed70..56b292b 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -350,7 +350,7 @@ static bool FindLength( demux_t *p_demux )
     for( int i = 0; i < PS_TK_COUNT; i++ )
     {
         ps_track_t *tk = &p_sys->tk[i];
-        if( tk->i_last_pts > 0 &&
+        if( tk->i_first_pts >= 0 &&
             tk->i_last_pts > tk->i_first_pts )
         {
             int64_t i_length = (int64_t)tk->i_last_pts - tk->i_first_pts;



More information about the vlc-commits mailing list