]> git.sesse.net Git - vlc/commitdiff
demux: ts: reject unknown probed streams
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 18 Feb 2015 17:44:45 +0000 (18:44 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 20 Feb 2015 18:56:22 +0000 (19:56 +0100)
modules/demux/ts.c

index 68487ac4498ceb1a193d319c897217f3772b8c83..a467b56561c5c2cc39ce074eb6aae1c73694c977 100644 (file)
@@ -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;