Commit 36ff346d authored by massiot's avatar massiot

* en50221.c: Do not send empty CAPMT when no PID is selected.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@51 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent b8ff0552
......@@ -1156,6 +1156,14 @@ static uint8_t *CAPMTBuild( access_t * p_access, int i_session_id,
}
}
if ( *pi_capmt_size <= 7 + i_cad_program_size )
{
msg_Dbg( p_access, "CAPMT not needed, no ES selected" );
free( p_capmt );
*pi_capmt_size = 0;
return NULL;
}
return p_capmt;
}
......
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