aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-11 04:53:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-30 19:31:34 +0200
commit2d09488ac39abc4a31acbdbd0d0c5f787a35544d (patch)
tree05425180a851ce82ccf3f5349fe521a781cd5b15
parent884653ee5be03ed38db957c14fad51b300611c8c (diff)
downloadffmpeg-2d09488ac39abc4a31acbdbd0d0c5f787a35544d.tar.gz
avformat/matroskaenc: Improve message for WebM-incompatible StereoModes
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/matroskaenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 64046f38aa..d26c0fa059 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1583,6 +1583,7 @@ static int mkv_write_stereo_mode(AVFormatContext *s, EbmlWriter *writer,
const AVStream *st, int is_webm,
int *h_width, int *h_height)
{
+ const char *error_message_addendum = "";
const AVDictionaryEntry *tag;
MatroskaVideoStereoModeType format = MATROSKA_VIDEO_STEREOMODE_TYPE_NB;
@@ -1656,6 +1657,7 @@ static int mkv_write_stereo_mode(AVFormatContext *s, EbmlWriter *writer,
// if webm, do not write unsupported modes
if (is_webm && !(webm_bitfield >> format)) {
+ error_message_addendum = " for WebM";
goto fail;
}
@@ -1668,7 +1670,8 @@ static int mkv_write_stereo_mode(AVFormatContext *s, EbmlWriter *writer,
return 0;
fail:
av_log(s, AV_LOG_ERROR,
- "The specified stereo mode is not valid.\n");
+ "The specified stereo mode is not valid%s.\n",
+ error_message_addendum);
return AVERROR(EINVAL);
}