diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-06-23 16:45:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-23 16:45:32 +0200 |
| commit | 873531444a857760023d84c8530b109518f5fbd2 (patch) | |
| tree | cae6bcd9003608ea824f192dac87b75bb8b6b823 | |
| parent | 1a49adcbe6af6e797194c9873a2d4e9b57d7de93 (diff) | |
Improve error messages when failing to decode video.
| -rw-r--r-- | src/lib/ffmpeg_image_proxy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_image_proxy.cc b/src/lib/ffmpeg_image_proxy.cc index 9c91d1d87..5214847a9 100644 --- a/src/lib/ffmpeg_image_proxy.cc +++ b/src/lib/ffmpeg_image_proxy.cc @@ -175,12 +175,12 @@ FFmpegImageProxy::image (optional<dcp::Size>) const AVPacket packet; int r = av_read_frame (format_context, &packet); if (r < 0) { - throw DecodeError (N_("could not read frame")); + throw DecodeError (String::compose(N_("could not read frame in file %1"), _path->string())); } int frame_finished; if (avcodec_decode_video2(codec_context, frame, &frame_finished, &packet) < 0 || !frame_finished) { - throw DecodeError (N_("could not decode video")); + throw DecodeError (String::compose(N_("could not decode video in file %1"), _path->string())); } _image.reset (new Image (frame)); |
