diff options
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index e98090080..44ef3f072 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -130,8 +130,9 @@ FFmpegFileEncoder::FFmpegFileEncoder ( throw runtime_error (String::compose ("could not open FFmpeg audio codec (%1)", buffer)); } - if (avio_open_boost (&_format_context->pb, _output, AVIO_FLAG_WRITE) < 0) { - throw runtime_error ("could not open FFmpeg output file"); + r = avio_open_boost (&_format_context->pb, _output, AVIO_FLAG_WRITE); + if (r < 0) { + throw runtime_error (String::compose("could not open FFmpeg output file %1 (%2)", _output.string(), r)); } AVDictionary* options = 0; |
