]> git.sesse.net Git - vlc/commitdiff
demux: ts: directly ignore scrambled content
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 13 Mar 2015 16:45:56 +0000 (17:45 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 15 Mar 2015 13:07:13 +0000 (14:07 +0100)
modules/demux/ts.c

index cdea67600e4e9cb845ba37b0638be68fdd5610a2..95d1fd265b276eda69f215d4bc4712f53b3f5957 100644 (file)
@@ -1298,6 +1298,12 @@ static int Demux( demux_t *p_demux )
             p_pid->i_flags |= FLAG_SEEN;
         }
 
+        if ( SCRAMBLED(*p_pid) && !p_demux->p_sys->csa )
+        {
+            block_Release( p_pkt );
+            continue;
+        }
+
         /* Probe streams to build PAT/PMT after MIN_PAT_INTERVAL in case we don't see any PAT */
         if( !SEEN(p_sys->pid[0]) &&
             (p_pid->probed.i_type == 0 || p_pid->i_pid == p_sys->patfix.i_timesourcepid) &&