aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-07-17 16:35:36 +0200
committerStefano Sabatini <stefasab@gmail.com>2014-07-17 16:51:51 +0200
commitb6a8c5245f5c70f4a45a9070aca8d9f4a5989508 (patch)
tree65ba30e3ecb03e69b5679403dad3d392c1568c59
parent5acad50056f653672a0e9b6b2986089c32046afb (diff)
downloadffmpeg-b6a8c5245f5c70f4a45a9070aca8d9f4a5989508.tar.gz
lavf/segment: show incoming packet duration in debug message
-rw-r--r--libavformat/segment.c3
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);