Fix lack of video rotation in some cases (#2971).