lavf/segment: add more information in log message in seg_write_packet()
authorStefano Sabatini <stefasab@gmail.com>
Mon, 16 Jan 2012 23:15:48 +0000 (00:15 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 3 Jul 2012 21:23:29 +0000 (23:23 +0200)
libavformat/segment.c

index bdcf127..4902aff 100644 (file)
@@ -208,8 +208,8 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
                       end_pts, AV_TIME_BASE_Q) >= 0 &&
         pkt->flags & AV_PKT_FLAG_KEY) {
 
-        av_log(s, AV_LOG_DEBUG, "Next segment starts at %d %"PRId64"\n",
-               pkt->stream_index, pkt->pts);
+        av_log(s, AV_LOG_DEBUG, "Next segment starts with packet stream:%d pts:%"PRId64" pts_time:%f\n",
+               pkt->stream_index, pkt->pts, pkt->pts * av_q2d(st->time_base));
 
         if ((ret = segment_end(s)) < 0 || (ret = segment_start(s)) < 0)
             goto fail;