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_image_proxy.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib/ffmpeg_image_proxy.cc') diff --git a/src/lib/ffmpeg_image_proxy.cc b/src/lib/ffmpeg_image_proxy.cc index 0ee41deab..c9fcd0413 100644 --- a/src/lib/ffmpeg_image_proxy.cc +++ b/src/lib/ffmpeg_image_proxy.cc @@ -28,7 +28,6 @@ #include "image.h" #include "memory_util.h" #include "video_filter_graph.h" -#include #include LIBDCP_DISABLE_WARNINGS extern "C" { @@ -38,6 +37,7 @@ extern "C" { } #include LIBDCP_ENABLE_WARNINGS +#include #include #include "i18n.h" @@ -52,7 +52,6 @@ using std::shared_ptr; using std::string; using boost::optional; using std::dynamic_pointer_cast; -using dcp::raw_convert; FFmpegImageProxy::FFmpegImageProxy (boost::filesystem::path path) @@ -143,8 +142,8 @@ FFmpegImageProxy::image (Image::Alignment alignment, optional) const /* These durations are in microseconds, and represent how far into the content file we will look for streams. */ - av_dict_set (&options, "analyzeduration", raw_convert(5 * 60 * 1000000).c_str(), 0); - av_dict_set (&options, "probesize", raw_convert(5 * 60 * 1000000).c_str(), 0); + av_dict_set(&options, "analyzeduration", fmt::to_string(5 * 60 * 1000000).c_str(), 0); + av_dict_set(&options, "probesize", fmt::to_string(5 * 60 * 1000000).c_str(), 0); int e = avformat_open_input (&format_context, 0, 0, &options); if ((e < 0 && e == AVERROR_INVALIDDATA) || (e >= 0 && format_context->probe_score <= 25)) { -- cgit v1.2.3