Properly deal with video orientation.