ffplay&cmdutils:Factor get_rotation() code out