summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_file_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
commit5b0e331380c83ec9835e8aa42fd342b2f0ad275d (patch)
tree13c27f0b3420f5c3a268a5a22a9172675fdc370c /src/lib/ffmpeg_file_encoder.cc
parent5d838bc863a7569e68546026c109607fd5a94362 (diff)
Use dcp::compose rather than our own.compose
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.cc')
-rw-r--r--src/lib/ffmpeg_file_encoder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc
index 29ee7455b..080f3ade9 100644
--- a/src/lib/ffmpeg_file_encoder.cc
+++ b/src/lib/ffmpeg_file_encoder.cc
@@ -28,7 +28,7 @@
#include "log.h"
#include "image.h"
#include "cross.h"
-#include "compose.hpp"
+#include <dcp/compose.h>
#include <iostream>
#include "i18n.h"
@@ -62,7 +62,7 @@ public:
{
_codec = avcodec_find_encoder_by_name (codec_name.c_str());
if (!_codec) {
- throw EncodeError (String::compose("avcodec_find_encoder_by_name failed for %1", codec_name));
+ throw EncodeError (dcp::compose("avcodec_find_encoder_by_name failed for %1", codec_name));
}
_codec_context = avcodec_alloc_context3 (_codec);
@@ -263,7 +263,7 @@ FFmpegFileEncoder::FFmpegFileEncoder (
r = avio_open_boost (&_format_context->pb, _output, AVIO_FLAG_WRITE);
if (r < 0) {
- throw EncodeError (String::compose(_("Could not open output file %1 (%2)"), _output.string(), r));
+ throw EncodeError (dcp::compose(_("Could not open output file %1 (%2)"), _output.string(), r));
}
AVDictionary* options = nullptr;
@@ -307,7 +307,7 @@ FFmpegFileEncoder::setup_video ()
{
_video_codec = avcodec_find_encoder_by_name (_video_codec_name.c_str());
if (!_video_codec) {
- throw EncodeError (String::compose("avcodec_find_encoder_by_name failed for %1", _video_codec_name));
+ throw EncodeError (dcp::compose("avcodec_find_encoder_by_name failed for %1", _video_codec_name));
}
_video_codec_context = avcodec_alloc_context3 (_video_codec);