[FFmpeg-cvslog] lavf/segment: show incoming packet duration in debug message

Stefano Sabatini git at videolan.org
Thu Jul 17 16:54:08 CEST 2014


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jul 17 16:35:36 2014 +0200| [b6a8c5245f5c70f4a45a9070aca8d9f4a5989508] | committer: Stefano Sabatini

lavf/segment: show incoming packet duration in debug message

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6a8c5245f5c70f4a45a9070aca8d9f4a5989508
---

 libavformat/segment.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 7c3a3c5..f1147a7 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);
 



More information about the ffmpeg-cvslog mailing list