Fix video aspect ratio calculation