diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-30 15:43:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-05 12:58:13 +0100 |
| commit | b03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch) | |
| tree | d6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/subtitle_film_encoder.cc | |
| parent | e46ff5f1cf168fb73ea930f3e8469165e5f6644e (diff) | |
Bump libdcp for raw_convert changes.
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead.
Other raw_converts now use fast_float.
Diffstat (limited to 'src/lib/subtitle_film_encoder.cc')
| -rw-r--r-- | src/lib/subtitle_film_encoder.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/subtitle_film_encoder.cc b/src/lib/subtitle_film_encoder.cc index 8356433a8..c9520bf0b 100644 --- a/src/lib/subtitle_film_encoder.cc +++ b/src/lib/subtitle_film_encoder.cc @@ -26,8 +26,8 @@ #include "subtitle_film_encoder.h" #include <dcp/filesystem.h> #include <dcp/interop_text_asset.h> -#include <dcp/raw_convert.h> #include <dcp/smpte_text_asset.h> +#include <fmt/format.h> #include <boost/filesystem.hpp> #include <boost/bind/bind.hpp> @@ -44,7 +44,6 @@ using boost::optional; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; #endif -using dcp::raw_convert; /** @param output Directory, if there will be multiple output files, or a filename. @@ -110,7 +109,7 @@ SubtitleFilmEncoder::go() if (_film->interop()) { auto s = make_shared<dcp::InteropTextAsset>(); s->set_movie_title (_film->name()); - s->set_reel_number (raw_convert<string>(reel + 1)); + s->set_reel_number(fmt::to_string(reel + 1)); i.first = s; } else { auto s = make_shared<dcp::SMPTETextAsset>(); @@ -148,7 +147,7 @@ SubtitleFilmEncoder::text(PlayerText subs, TextType type, optional<DCPTextTrack> if (lang.first) { s->set_language (lang.first->to_string()); } - s->set_reel_number (raw_convert<string>(_reel_index + 1)); + s->set_reel_number(fmt::to_string(_reel_index + 1)); _assets[_reel_index].first = s; } else { auto s = make_shared<dcp::SMPTETextAsset>(); |
