diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2014-07-17 16:35:36 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2014-07-17 16:51:51 +0200 |
commit | b6a8c5245f5c70f4a45a9070aca8d9f4a5989508 (patch) | |
tree | 65ba30e3ecb03e69b5679403dad3d392c1568c59 /libavformat/segment.c | |
parent | 5acad50056f653672a0e9b6b2986089c32046afb (diff) | |
download | ffmpeg-b6a8c5245f5c70f4a45a9070aca8d9f4a5989508.tar.gz |
lavf/segment: show incoming packet duration in debug message
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 7c3a3c5f30..f1147a76c0 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -707,8 +707,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) } } - av_dlog(s, "packet stream:%d pts:%s pts_time:%s is_key:%d frame:%d\n", + av_dlog(s, "packet stream:%d pts:%s pts_time:%s duration_time:%s is_key:%d frame:%d\n", pkt->stream_index, av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base), + av_ts2timestr(pkt->duration, &st->time_base), pkt->flags & AV_PKT_FLAG_KEY, pkt->stream_index == seg->reference_stream_index ? seg->frame_count : -1); |