Browse Source

ffprobe: show probe_score in the format section

Should address trac ticket #2621.
tags/n2.1
Stefano Sabatini 12 years ago
parent
commit
291ad12ea2
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      doc/ffprobe.xsd
  2. +1
    -0
      ffprobe.c

+ 1
- 0
doc/ffprobe.xsd View File

@@ -185,6 +185,7 @@
<xsd:attribute name="duration" type="xsd:float"/> <xsd:attribute name="duration" type="xsd:float"/>
<xsd:attribute name="size" type="xsd:long"/> <xsd:attribute name="size" type="xsd:long"/>
<xsd:attribute name="bit_rate" type="xsd:long"/> <xsd:attribute name="bit_rate" type="xsd:long"/>
<xsd:attribute name="probe_score" type="xsd:int"/>
</xsd:complexType> </xsd:complexType>


<xsd:complexType name="tagType"> <xsd:complexType name="tagType">


+ 1
- 0
ffprobe.c View File

@@ -1867,6 +1867,7 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
else print_str_opt("size", "N/A"); 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); 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"); 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); show_tags(w, fmt_ctx->metadata, SECTION_ID_FORMAT_TAGS);


writer_print_section_footer(w); writer_print_section_footer(w);


Loading…
Cancel
Save