aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-17 21:20:13 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-28 10:47:59 +0200
commit335688a3d3835c3b6e1364231b75e6817d7941a0 (patch)
tree65637ec96894c19a4076480587f1bf4f657be8db
parentd43ae45de0432143a32e2710ba4a4cf13e12a772 (diff)
downloadffmpeg-335688a3d3835c3b6e1364231b75e6817d7941a0.tar.gz
fftools/ffmpeg_demux: skip unused/attachment streams in final stats
No useful information can be printed for them.
-rw-r--r--fftools/ffmpeg_demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index bd267aa0ce..33322ac565 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -781,6 +781,9 @@ static void demux_final_stats(Demuxer *d)
DemuxStream *ds = ds_from_ist(ist);
enum AVMediaType type = ist->par->codec_type;
+ if (ist->discard || type == AVMEDIA_TYPE_ATTACHMENT)
+ continue;
+
total_size += ds->data_size;
total_packets += ds->nb_packets;