summaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-14 11:59:13 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-15 11:46:47 +0100
commit1a490df12fd987c91e22d30be322aab14a7eac8a (patch)
treee069ea0fbf908b43eca02dd32bf7fc1af9c0fa1e /ffprobe.c
parent96d815fc0c71d08b9c4bd65aea021bd0760f2287 (diff)
downloadffmpeg-streaming-1a490df12fd987c91e22d30be322aab14a7eac8a.zip
ffmpeg-streaming-1a490df12fd987c91e22d30be322aab14a7eac8a.tar.gz
ffprobe: show pkt_size in frame
Fix trac ticket #2027.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 84dfa19..a98344b 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1476,6 +1476,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base);
if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos);
else print_str_opt("pkt_pos", "N/A");
+ if (frame->pkt_size != -1) print_fmt ("pkt_size", "%d", av_frame_get_pkt_size(frame));
+ else print_str_opt("pkt_size", "N/A");
switch (stream->codec->codec_type) {
AVRational sar;
OpenPOWER on IntegriCloud