Commit c03f0964 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: don't try to decode and warn on scrambled PES

parent 84bdd0e7
......@@ -1567,8 +1567,9 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
/* FIXME find real max size */
/* const int i_max = */ block_ChainExtract( p_pes, header, 34 );
if( header[0] != 0 || header[1] != 0 || header[2] != 1 )
if( pid->b_scrambled || header[0] != 0 || header[1] != 0 || header[2] != 1 )
{
if ( !pid->b_scrambled )
msg_Warn( p_demux, "invalid header [0x%02x:%02x:%02x:%02x] (pid: %d)",
header[0], header[1],header[2],header[3], pid->i_pid );
block_ChainRelease( p_pes );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment