From a1dfa9a33c72c1e9534593bc37de636fd7ddd28e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 May 2017 21:17:09 +0100 Subject: Try to fix windows build failure (#1071). --- src/lib/ffmpeg_encoder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_encoder.cc') 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 @@ -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"); } -- cgit v1.2.3