[vlc-commits] demux: ts: reject unknown probed streams

Francois Cartegnie git at videolan.org
Fri Feb 20 19:57:14 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 18 18:44:45 2015 +0100| [4a5cb6f600aadec4e2d25ade1d41a9501932210a] | committer: Francois Cartegnie

demux: ts: reject unknown probed streams

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

 modules/demux/ts.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 68487ac..a467b56 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -854,7 +854,7 @@ static void MissingPATPMTFixup( demux_t *p_demux )
     for( int i = MIN_ES_PID; i < MAX_ES_PID; i++ )
     {
         if( !p_sys->pid[i].b_seen ||
-            !p_sys->pid[i].probed.i_type )
+            p_sys->pid[i].probed.i_type == -1 )
             continue;
 
         if( i_pcr_pid == 0x1FFF && ( p_sys->pid[i].probed.i_type == 0x03 ||
@@ -907,7 +907,7 @@ static void MissingPATPMTFixup( demux_t *p_demux )
         for( int i = MIN_ES_PID; i < MAX_ES_PID; i++ )
         {
             if( !p_sys->pid[i].b_seen ||
-                !p_sys->pid[i].probed.i_type )
+                p_sys->pid[i].probed.i_type == -1 )
                 continue;
 
             esstreams[j].pes.i_stream_type = p_sys->pid[i].probed.i_type;



More information about the vlc-commits mailing list