mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fftools/ffprobe: Remove check on show_frames and show_packets in XML writer
The "packets_and_frames" element has been added to ffprobe.xsd in
0c9f0da0f7
but apparently removing the
check in ffprobe.c has been forgotten.
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
This commit is contained in:
parent
240aa70b79
commit
f10da58ec3
@ -1660,13 +1660,6 @@ static av_cold int xml_init(WriterContext *wctx)
|
|||||||
CHECK_COMPLIANCE(show_private_data, "private");
|
CHECK_COMPLIANCE(show_private_data, "private");
|
||||||
CHECK_COMPLIANCE(show_value_unit, "unit");
|
CHECK_COMPLIANCE(show_value_unit, "unit");
|
||||||
CHECK_COMPLIANCE(use_value_prefix, "prefix");
|
CHECK_COMPLIANCE(use_value_prefix, "prefix");
|
||||||
|
|
||||||
if (do_show_frames && do_show_packets) {
|
|
||||||
av_log(wctx, AV_LOG_ERROR,
|
|
||||||
"Interleaved frames and packets are not allowed in XSD. "
|
|
||||||
"Select only one between the -show_frames and the -show_packets options.\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user