diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-10 00:12:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-10 00:12:43 +0100 |
| commit | 3e3371327c0f9c7ceebd1b44fd0c6ae85f0ae621 (patch) | |
| tree | 3442ee999b3201c1d3548dd3d00a73f6cca4d0fa /src/lib/ffmpeg_transcoder.cc | |
| parent | 7b86ff6b62138b3917cc0b23e270769f536abd6b (diff) | |
Fix output file for export.
Diffstat (limited to 'src/lib/ffmpeg_transcoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_transcoder.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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"); } |
