# HG changeset patch # User michael # Date 1127054717 0 # Node ID a332778dfa069d9de4ca6ec4cec796ab6fd81220 # Parent a95e55679dfabae4b3c85640dcc22c670c7e1f97 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 ... diff -r a95e55679dfa -r a332778dfa06 utils.c --- 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),