summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-12 21:17:09 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-12 21:17:09 +0100
commita1dfa9a33c72c1e9534593bc37de636fd7ddd28e (patch)
tree001f4fd68e7aaaeaa01afeef6569e45fe0e81837 /src/lib/ffmpeg_encoder.cc
parent6baf89931d836f112ea275ea2d6d3b1547efdd45 (diff)
Try to fix windows build failure (#1071).
Diffstat (limited to 'src/lib/ffmpeg_encoder.cc')
-rw-r--r--src/lib/ffmpeg_encoder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc
index 8464faf7d..f26f66bff 100644
--- a/src/lib/ffmpeg_encoder.cc
+++ b/src/lib/ffmpeg_encoder.cc
@@ -25,6 +25,7 @@
#include "player_video.h"
#include "log.h"
#include "image.h"
+#include "cross.h"
#include "compose.hpp"
#include <iostream>
@@ -159,7 +160,7 @@ FFmpegEncoder::go ()
throw runtime_error (String::compose ("could not open FFmpeg audio codec (%1)", buffer));
}
- if (avio_open (&_format_context->pb, _output.c_str(), AVIO_FLAG_WRITE) < 0) {
+ if (avio_open_boost (&_format_context->pb, _output, AVIO_FLAG_WRITE) < 0) {
throw runtime_error ("could not open FFmpeg output file");
}