From 3e3371327c0f9c7ceebd1b44fd0c6ae85f0ae621 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 May 2017 00:12:43 +0100 Subject: Fix output file for export. --- src/lib/ffmpeg_transcoder.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/ffmpeg_transcoder.cc') diff --git a/src/lib/ffmpeg_transcoder.cc b/src/lib/ffmpeg_transcoder.cc index 5f6484064..510966f0c 100644 --- a/src/lib/ffmpeg_transcoder.cc +++ b/src/lib/ffmpeg_transcoder.cc @@ -79,7 +79,6 @@ FFmpegTranscoder::go () _codec_context->pix_fmt = _pixel_format; _codec_context->flags |= CODEC_FLAG_QSCALE | CODEC_FLAG_GLOBAL_HEADER; - boost::filesystem::path filename = _film->file(_film->isdcf_name(true) + ".mov"); avformat_alloc_output_context2 (&_format_context, 0, 0, _output.string().c_str()); if (!_format_context) { throw runtime_error ("could not allocate FFmpeg format context"); @@ -102,7 +101,7 @@ FFmpegTranscoder::go () throw runtime_error ("could not open FFmpeg codec"); } - if (avio_open (&_format_context->pb, filename.c_str(), AVIO_FLAG_WRITE) < 0) { + if (avio_open (&_format_context->pb, _output.c_str(), AVIO_FLAG_WRITE) < 0) { throw runtime_error ("could not open FFmpeg output file"); } -- cgit v1.2.3