changeset 4556:72475783652f libavformat

Print all timebases (idea from netgem)
author michael
date Sat, 21 Feb 2009 21:30:44 +0000
parents fd360a55f56d
children bfe6fb676d46
files utils.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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");