A Virginia appeals court upheld the firing of a prison guard caught on video assaulting an inmate and joking about it.