diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-14 22:32:52 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-14 22:32:52 +0000 |
| commit | b9bdf4386c1e0a3a87b962aeb36bf1abcc3fc06d (patch) | |
| tree | ef0b290b4ae47a181ee5c5eca62afd084ad09aac /src | |
| parent | c375db5cd3e9e1bd06b8f613b0163b873b824aec (diff) | |
Fix precision of ScreenAspectRatio tags in Interop mode.
Diffstat (limited to 'src')
| -rw-r--r-- | src/picture_asset.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc index 3a0383fe..20ea2c9f 100644 --- a/src/picture_asset.cc +++ b/src/picture_asset.cc @@ -73,7 +73,9 @@ PictureAsset::write_to_cpl (xmlpp::Element* node, bool interop) const (*i)->add_child ("FrameRate")->add_child_text (lexical_cast<string> (_edit_rate * edit_rate_factor ()) + " 1"); if (interop) { - (*i)->add_child ("ScreenAspectRatio")->add_child_text (lexical_cast<string> (float (_size.width) / _size.height)); + stringstream s; + s << std::fixed << std::setprecision (2) << (float (_size.width) / _size.height); + (*i)->add_child ("ScreenAspectRatio")->add_child_text (s.str ()); } else { (*i)->add_child ("ScreenAspectRatio")->add_child_text (lexical_cast<string> (_size.width) + " " + lexical_cast<string> (_size.height)); } |
