In 2002 F. Wirth has proved that the joint spectral radius of irreducible compact families of matrices is locally Lipschitz continuous as a function of the matrix family. In the paper, an explicit formula for the related Lipschitz constant is obtained.