Myositis ossificans (my-uh-SY-tuss uh-SIH-fuh-kanz) is when a bone forms inside your muscle or other soft tissue. Usually, myositis ossificans develops after a traumatic injury. Most often, it affects large muscles, such as in your arms or legs.