[FFmpeg-devel] [PATCH 1/1] fftools/ffprobe: print size of attachment streams
Soft Works
softworkz at hotmail.com
Tue Oct 19 04:38:14 EEST 2021
Signed-off-by: softworkz <softworkz at hotmail.com>
---
doc/ffprobe.xsd | 3 +++
fftools/ffprobe.c | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd
index b65e54dbef..d0cddd6130 100644
--- a/doc/ffprobe.xsd
+++ b/doc/ffprobe.xsd
@@ -258,6 +258,9 @@
<xsd:attribute name="nb_frames" type="xsd:int"/>
<xsd:attribute name="nb_read_frames" type="xsd:int"/>
<xsd:attribute name="nb_read_packets" type="xsd:int"/>
+
+ <!-- attachment attributes -->
+ <xsd:attribute name="attachment_size" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="programType">
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 90e895bbf9..8a08bb51af 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -2727,6 +2727,10 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
else
print_str_opt("height", "N/A");
break;
+
+ case AVMEDIA_TYPE_ATTACHMENT:
+ if (par->extradata_size)
+ print_int("attachment_size", par->extradata_size);
}
if (dec_ctx && dec_ctx->codec && dec_ctx->codec->priv_class && show_private_data) {
--
2.17.1
More information about the ffmpeg-devel
mailing list