aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-08-29 00:28:26 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-09-01 11:34:18 +0200
commit291ad12ea2d1f9297d4ed22d54f4f8fa232e43dc (patch)
tree59e165306b54e4f42e4a0a6d955b2ef1b208e1f3
parent51b01573e536aedc5fae237b0bea608e195baf91 (diff)
downloadffmpeg-291ad12ea2d1f9297d4ed22d54f4f8fa232e43dc.tar.gz
ffprobe: show probe_score in the format section
Should address trac ticket #2621.
-rw-r--r--doc/ffprobe.xsd1
-rw-r--r--ffprobe.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd
index 26fd7d8898..dae2b3fcf2 100644
--- a/doc/ffprobe.xsd
+++ b/doc/ffprobe.xsd
@@ -185,6 +185,7 @@
<xsd:attribute name="duration" type="xsd:float"/>
<xsd:attribute name="size" type="xsd:long"/>
<xsd:attribute name="bit_rate" type="xsd:long"/>
+ <xsd:attribute name="probe_score" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="tagType">
diff --git a/ffprobe.c b/ffprobe.c
index 8a65e1afde..23f8ec11c1 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1867,6 +1867,7 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
else print_str_opt("size", "N/A");
if (fmt_ctx->bit_rate > 0) print_val ("bit_rate", fmt_ctx->bit_rate, unit_bit_per_second_str);
else print_str_opt("bit_rate", "N/A");
+ print_int("probe_score", av_format_get_probe_score(fmt_ctx));
show_tags(w, fmt_ctx->metadata, SECTION_ID_FORMAT_TAGS);
writer_print_section_footer(w);