diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-10-30 18:17:16 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-10-30 18:17:16 +0000 |
commit | 050ba6f45eac82c524b5ce664d16c20ce4f16628 (patch) | |
tree | 5c1e5bbb89e069f884d2846efb70bf78ab54cfb7 | |
parent | a520e9f23554455c460a63cf2680d1db2312fdf7 (diff) | |
download | ffmpeg-050ba6f45eac82c524b5ce664d16c20ce4f16628.tar.gz |
print packet duration when debugging timestamps
Originally committed as revision 20420 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 4202fc26a2..e54a6f31cc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1022,11 +1022,12 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) } if(s->debug & FF_FDEBUG_TS) - av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n", + av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n", st->cur_pkt.stream_index, st->cur_pkt.pts, st->cur_pkt.dts, st->cur_pkt.size, + st->cur_pkt.duration, st->cur_pkt.flags); s->cur_st = st; @@ -1048,11 +1049,12 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) } } if(s->debug & FF_FDEBUG_TS) - av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n", + av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n", pkt->stream_index, pkt->pts, pkt->dts, pkt->size, + pkt->duration, pkt->flags); return 0; |