apply codec profile conditions