diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-16 00:21:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-16 00:21:28 +0200 |
| commit | 30e262f486c8390b7c9a1a797471082f90adf61b (patch) | |
| tree | 73b146efc31554ebba30cb4f881e94501fb2bb6a /src | |
| parent | a863000bf1b7bdcd67286206916f5f9c4fdbd844 (diff) | |
Give a better error.v2.15.80
Diffstat (limited to 'src')
| -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; |
