diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/asset_map.cc | 8 | ||||
| -rw-r--r-- | src/asset_map.h | 8 | ||||
| -rw-r--r-- | src/cpl.cc | 12 | ||||
| -rw-r--r-- | src/cpl.h | 12 | ||||
| -rw-r--r-- | src/pkl.cc | 2 | ||||
| -rw-r--r-- | src/pkl.h | 2 | ||||
| -rw-r--r-- | src/xml.cc | 6 | ||||
| -rw-r--r-- | src/xml.h | 2 |
8 files changed, 26 insertions, 26 deletions
diff --git a/src/asset_map.cc b/src/asset_map.cc index 11e80284..9276170c 100644 --- a/src/asset_map.cc +++ b/src/asset_map.cc @@ -8,7 +8,7 @@ AssetMap::AssetMap (string file) { id = string_node ("Id"); creator = string_node ("Creator"); - volume_count = int_node ("VolumeCount"); + volume_count = int64_node ("VolumeCount"); issue_date = string_node ("IssueDate"); issuer = string_node ("Issuer"); assets = sub_nodes<AssetMapAsset> ("AssetList", "Asset"); @@ -26,8 +26,8 @@ Chunk::Chunk (xmlpp::Node const * node) : XMLNode (node) { path = string_node ("Path"); - volume_index = int_node ("VolumeIndex"); - offset = int_node ("Offset"); - length = int_node ("Length"); + volume_index = int64_node ("VolumeIndex"); + offset = int64_node ("Offset"); + length = int64_node ("Length"); } diff --git a/src/asset_map.h b/src/asset_map.h index 754528ec..34e301a5 100644 --- a/src/asset_map.h +++ b/src/asset_map.h @@ -10,9 +10,9 @@ public: Chunk (xmlpp::Node const * node); std::string path; - int volume_index; - int offset; - int length; + int64_t volume_index; + int64_t offset; + int64_t length; }; class AssetMapAsset : public XMLNode @@ -33,7 +33,7 @@ public: std::string id; std::string creator; - int volume_count; + int64_t volume_count; std::string issue_date; std::string issuer; std::list<boost::shared_ptr<AssetMapAsset> > assets; @@ -51,9 +51,9 @@ MainPicture::MainPicture (xmlpp::Node const * node) id = string_node ("Id"); annotation_text = string_node ("AnnotationText"); edit_rate = fraction_node ("EditRate"); - intrinsic_duration = int_node ("IntrinsicDuration"); - entry_point = int_node ("EntryPoint"); - duration = int_node ("Duration"); + intrinsic_duration = int64_node ("IntrinsicDuration"); + entry_point = int64_node ("EntryPoint"); + duration = int64_node ("Duration"); frame_rate = fraction_node ("FrameRate"); screen_aspect_ratio = fraction_node ("ScreenAspectRatio"); @@ -66,9 +66,9 @@ MainSound::MainSound (xmlpp::Node const * node) id = string_node ("Id"); annotation_text = string_node ("AnnotationText"); edit_rate = fraction_node ("EditRate"); - intrinsic_duration = int_node ("IntrinsicDuration"); - entry_point = int_node ("EntryPoint"); - duration = int_node ("Duration"); + intrinsic_duration = int64_node ("IntrinsicDuration"); + entry_point = int64_node ("EntryPoint"); + duration = int64_node ("Duration"); done (); } @@ -12,9 +12,9 @@ public: std::string id; std::string annotation_text; Fraction edit_rate; - int intrinsic_duration; - int entry_point; - int duration; + int64_t intrinsic_duration; + int64_t entry_point; + int64_t duration; Fraction frame_rate; Fraction screen_aspect_ratio; }; @@ -28,9 +28,9 @@ public: std::string id; std::string annotation_text; Fraction edit_rate; - int intrinsic_duration; - int entry_point; - int duration; + int64_t intrinsic_duration; + int64_t entry_point; + int64_t duration; }; class CPLAssetList : public XMLNode @@ -20,7 +20,7 @@ PKLAsset::PKLAsset (xmlpp::Node const * node) id = string_node ("Id"); annotation_text = optional_string_node ("AnnotationText"); hash = string_node ("Hash"); - size = int_node ("Size"); + size = int64_node ("Size"); type = string_node ("Type"); } @@ -12,7 +12,7 @@ public: std::string id; std::string annotation_text; std::string hash; - int size; + int64_t size; std::string type; }; @@ -100,10 +100,10 @@ XMLNode::fraction_node (string name) return Fraction (string_node (name)); } -int -XMLNode::int_node (string name) +int64_t +XMLNode::int64_node (string name) { - return lexical_cast<int> (string_node (name)); + return lexical_cast<int64_t> (string_node (name)); } void @@ -26,7 +26,7 @@ protected: std::string optional_string_node (std::string); ContentKind kind_node (std::string); Fraction fraction_node (std::string); - int int_node (std::string); + int64_t int64_node (std::string); void ignore_node (std::string); void done (); |
