diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2004-10-11 17:12:52 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-11 17:12:52 +0000 |
commit | d0f3f15945f808313ef62b50328d540bd0758368 (patch) | |
tree | 9df1059cfc3d00a0bf5ab7c4e976e13d2aac0103 | |
parent | 184582de5aa4d204b773aeffb1eb89bf214c2ea6 (diff) | |
download | ffmpeg-d0f3f15945f808313ef62b50328d540bd0758368.tar.gz |
print start_time patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
Originally committed as revision 3580 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 331f42c05f..f8a00f20dc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2224,6 +2224,14 @@ void dump_format(AVFormatContext *ic, } else { av_log(NULL, AV_LOG_DEBUG, "N/A"); } + if (ic->start_time != AV_NOPTS_VALUE) { + int secs, us; + av_log(NULL, AV_LOG_DEBUG, ", start: "); + secs = ic->start_time / AV_TIME_BASE; + us = ic->start_time % AV_TIME_BASE; + av_log(NULL, AV_LOG_DEBUG, "%d.%06d", + secs, (int)av_rescale(us, 1000000, AV_TIME_BASE)); + } av_log(NULL, AV_LOG_DEBUG, ", bitrate: "); if (ic->bit_rate) { av_log(NULL, AV_LOG_DEBUG,"%d kb/s", ic->bit_rate / 1000); |