From b03f2277a205ff7e7cdaa12c6e52322ea474a7af Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 30 Dec 2024 15:43:14 +0100 Subject: Bump libdcp for raw_convert changes. raw_convert is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float. --- src/lib/ffmpeg_content.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/lib/ffmpeg_content.cc') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 5a99ecaa5..49e4933a6 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -36,13 +36,13 @@ #include "text_content.h" #include "variant.h" #include "video_content.h" -#include #include extern "C" { #include #include } #include +#include #include #include "i18n.h" @@ -59,7 +59,6 @@ using std::make_shared; using std::shared_ptr; using std::dynamic_pointer_cast; using boost::optional; -using dcp::raw_convert; using namespace dcpomatic; @@ -236,23 +235,23 @@ FFmpegContent::as_xml(xmlpp::Element* element, bool with_paths, PathBehaviour pa } if (_first_video) { - cxml::add_text_child(element, "FirstVideo", raw_convert(_first_video.get().get())); + cxml::add_text_child(element, "FirstVideo", fmt::to_string(_first_video.get().get())); } if (_color_range) { - cxml::add_text_child(element, "ColorRange", raw_convert(static_cast(*_color_range))); + cxml::add_text_child(element, "ColorRange", fmt::to_string(static_cast(*_color_range))); } if (_color_primaries) { - cxml::add_text_child(element, "ColorPrimaries", raw_convert(static_cast(*_color_primaries))); + cxml::add_text_child(element, "ColorPrimaries", fmt::to_string(static_cast(*_color_primaries))); } if (_color_trc) { - cxml::add_text_child(element, "ColorTransferCharacteristic", raw_convert(static_cast(*_color_trc))); + cxml::add_text_child(element, "ColorTransferCharacteristic", fmt::to_string(static_cast(*_color_trc))); } if (_colorspace) { - cxml::add_text_child(element, "Colorspace", raw_convert(static_cast(*_colorspace))); + cxml::add_text_child(element, "Colorspace", fmt::to_string(static_cast(*_colorspace))); } if (_bits_per_pixel) { - cxml::add_text_child(element, "BitsPerPixel", raw_convert(*_bits_per_pixel)); + cxml::add_text_child(element, "BitsPerPixel", fmt::to_string(*_bits_per_pixel)); } } -- cgit v1.2.3