aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-01-05 10:51:28 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-01-06 10:43:34 +0100
commitc5f4abf698f6a52db2eb7a27c7560fc0f8a33b5f (patch)
tree7b8da3964a0baaf9d983fedc95307a893f26f8a9 /ffprobe.c
parent49c207b8205bf018bd3afff9b26222178f111bbc (diff)
downloadffmpeg-c5f4abf698f6a52db2eb7a27c7560fc0f8a33b5f.tar.gz
ffprobe: exit in case generic options are incompatible with strict XML output
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 77c343a96a..34626a8fc9 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -926,6 +926,7 @@ static av_cold int xml_init(WriterContext *wctx, const char *args, void *opaque)
av_log(wctx, AV_LOG_ERROR, \
"XSD-compliant output selected but option '%s' was selected, XML output may be non-compliant.\n" \
"You need to disable such option with '-no%s'\n", opt_name, opt_name); \
+ return AVERROR(EINVAL); \
}
CHECK_COMPLIANCE(show_private_data, "private");
CHECK_COMPLIANCE(show_value_unit, "unit");