summaryrefslogtreecommitdiff
path: root/src/reel_picture_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/reel_picture_asset.cc')
-rw-r--r--src/reel_picture_asset.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reel_picture_asset.cc b/src/reel_picture_asset.cc
index 37a6bfcc..9cb36957 100644
--- a/src/reel_picture_asset.cc
+++ b/src/reel_picture_asset.cc
@@ -47,6 +47,7 @@
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
#include <iomanip>
#include <cmath>
@@ -113,7 +114,7 @@ ReelPictureAsset::write_to_cpl(xmlpp::Element* node, Standard standard) const
}
}
- cxml::add_text_child(asset, "ScreenAspectRatio", raw_convert<string>(closest.get(), 2, true));
+ cxml::add_text_child(asset, "ScreenAspectRatio", fmt::format("{:.2f}", closest.get()));
} else {
cxml::add_text_child(
asset,