History

ffprobe: show pkt_size in frame

Fix trac ticket #2027.

Stefano Sabatini committed 13 years ago

Commit 1a490df1 parent 96d815f2 files · +3 −0Browse files

Unified · Split

2 files
  1. doc/ffprobe.xsd +1 −0
  2. ffprobe.c +2 −0
doc/ffprobe.xsd+1−0
@@ -59,6 +59,7 @@ · 58 unmodified lines
5959 <xsd:attribute name="pkt_duration" type="xsd:long" />
6060 <xsd:attribute name="pkt_duration_time" type="xsd:float"/>
6161 <xsd:attribute name="pkt_pos" type="xsd:long" />
62+ <xsd:attribute name="pkt_size" type="xsd:int" />
6263
6364 <!-- audio attributes -->
6465 <xsd:attribute name="sample_fmt" type="xsd:string"/>
ffprobe.c+2−0
@@ -1476,6 +1476,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, · 1475 unmodified lines
14761476 print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base);
14771477 if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos);
14781478 else print_str_opt("pkt_pos", "N/A");
1479+ if (frame->pkt_size != -1) print_fmt ("pkt_size", "%d", av_frame_get_pkt_size(frame));
1480+ else print_str_opt("pkt_size", "N/A");
14791481
14801482 switch (stream->codec->codec_type) {
14811483 AVRational sar;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t