# HG changeset patch # User michael # Date 1235251844 0 # Node ID 72475783652ff1df34f6e5c956eaf5747420f4b6 # Parent fd360a55f56d66c720bffa9d5b4229943d41d2e2 Print all timebases (idea from netgem) diff -r fd360a55f56d -r 72475783652f utils.c --- a/utils.c Sat Feb 21 20:57:46 2009 +0000 +++ b/utils.c Sat Feb 21 21:30:44 2009 +0000 @@ -2786,9 +2786,9 @@ if(st->codec->codec_type == CODEC_TYPE_VIDEO){ if(st->r_frame_rate.den && st->r_frame_rate.num) av_log(NULL, AV_LOG_INFO, ", %5.2f tb(r)", av_q2d(st->r_frame_rate)); -/* else if(st->time_base.den && st->time_base.num) - av_log(NULL, AV_LOG_INFO, ", %5.2f tb(m)", 1/av_q2d(st->time_base));*/ - else + if(st->time_base.den && st->time_base.num) + av_log(NULL, AV_LOG_INFO, ", %5.2f tb(m)", 1/av_q2d(st->time_base)); + if(st->codec->time_base.den && st->codec->time_base.num) av_log(NULL, AV_LOG_INFO, ", %5.2f tb(c)", 1/av_q2d(st->codec->time_base)); } av_log(NULL, AV_LOG_INFO, "\n");