summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-16 00:21:28 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-16 00:21:28 +0200
commit30e262f486c8390b7c9a1a797471082f90adf61b (patch)
tree73b146efc31554ebba30cb4f881e94501fb2bb6a
parenta863000bf1b7bdcd67286206916f5f9c4fdbd844 (diff)
Give a better error.v2.15.80
-rw-r--r--src/lib/ffmpeg_file_encoder.cc5
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;