Mercurial > libavcodec.hg
changeset 2884:a332778dfa06 libavcodec
print more time_base fps stuff if av_log level is at debug or above
print more likely correct fps
not sure if this is formated optimally ...
author | michael |
---|---|
date | Sun, 18 Sep 2005 14:45:17 +0000 |
parents | a95e55679dfa |
children | 5dfb90019814 |
files | utils.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sat Sep 17 08:15:07 2005 +0000 +++ b/utils.c Sun Sep 18 14:45:17 2005 +0000 @@ -1072,9 +1072,14 @@ } if (enc->width) { snprintf(buf + strlen(buf), buf_size - strlen(buf), - ", %dx%d, %0.2f fps", - enc->width, enc->height, - 1/av_q2d(enc->time_base)); + ", %dx%d", + enc->width, enc->height); + if(av_log_get_level() >= AV_LOG_DEBUG){ + int g= ff_gcd(enc->time_base.num, enc->time_base.den); + snprintf(buf + strlen(buf), buf_size - strlen(buf), + ", %d/%d", + enc->time_base.num/g, enc->time_base.den/g); + } } if (encode) { snprintf(buf + strlen(buf), buf_size - strlen(buf),