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

Francois Cartegnie git at videolan.org
Thu Mar 9 18:06:24 CET 2017


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

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

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

 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..06eea25 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