aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2004-10-11 17:12:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-11 17:12:52 +0000
commitd0f3f15945f808313ef62b50328d540bd0758368 (patch)
tree9df1059cfc3d00a0bf5ab7c4e976e13d2aac0103
parent184582de5aa4d204b773aeffb1eb89bf214c2ea6 (diff)
downloadffmpeg-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.c8
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);