Calculate h.264 aspect ratio using cropped dimensions.

Otherwise the aspect ratio may change from 1920/1080 to 1920/1088 and
lead to anomalous rescaling.