aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorDave Rice <dave@dericed.com>2015-05-25 20:46:12 -0400
committerStefano Sabatini <stefasab@gmail.com>2015-05-27 11:19:19 +0200
commit09ec31ce3aab41407965e7a95b7d145702434c26 (patch)
tree8a0a6f94550c79fec2d4270a4c0eeb190d286289 /ffprobe.c
parentc312bfac4c8ac1ac55d6648fd6eb36db436100f3 (diff)
downloadffmpeg-09ec31ce3aab41407965e7a95b7d145702434c26.tar.gz
ffprobe: print stream_index with frame data
This makes it easier to relate frame data to its associated stream.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index fadcd9336e..415836b72a 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1824,6 +1824,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
s = av_get_media_type_string(stream->codec->codec_type);
if (s) print_str ("media_type", s);
else print_str_opt("media_type", "unknown");
+ print_int("stream_index", stream->index);
print_int("key_frame", frame->key_frame);
print_ts ("pkt_pts", frame->pkt_pts);
print_time("pkt_pts_time", frame->pkt_pts, &stream->time_base);