Influence of pions and hyperons on stellar black hole formation