ffprobe: show probe_score in the format section
authorStefano Sabatini <stefasab@gmail.com>
Wed, 28 Aug 2013 22:28:26 +0000 (00:28 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 1 Sep 2013 09:34:18 +0000 (11:34 +0200)
Should address trac ticket #2621.

doc/ffprobe.xsd
ffprobe.c

index 26fd7d8..dae2b3f 100644 (file)
       <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">
index 8a65e1a..23f8ec1 100644 (file)
--- 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);