libx265: Only set the SAR if it is valid