Mercurial > libavformat.hg
changeset 556:cb5f220888c0 libavformat
print start_time patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
author | michael |
---|---|
date | Mon, 11 Oct 2004 17:12:52 +0000 |
parents | 0a997108f384 |
children | 084de726b4d0 |
files | utils.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Oct 10 22:05:43 2004 +0000 +++ b/utils.c Mon Oct 11 17:12:52 2004 +0000 @@ -2224,6 +2224,14 @@ } 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);