Fix trac ticket #2027.
Unified · Split
| @@ -59,6 +59,7 @@ · 58 unmodified lines | ||
| 59 | 59 | <xsd:attribute name="pkt_duration" type="xsd:long" /> |
| 60 | 60 | <xsd:attribute name="pkt_duration_time" type="xsd:float"/> |
| 61 | 61 | <xsd:attribute name="pkt_pos" type="xsd:long" /> |
| 62 | + <xsd:attribute name="pkt_size" type="xsd:int" /> | |
| 62 | 63 | |
| 63 | 64 | <!-- audio attributes --> |
| 64 | 65 | <xsd:attribute name="sample_fmt" type="xsd:string"/> |
| @@ -1476,6 +1476,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, · 1475 unmodified lines | ||
| 1476 | 1476 | print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base); |
| 1477 | 1477 | if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos); |
| 1478 | 1478 | 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"); | |
| 1479 | 1481 | |
| 1480 | 1482 | switch (stream->codec->codec_type) { |
| 1481 | 1483 | AVRational sar; |