[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.158,1.159

Michael Niedermayer CVS michael
Sun Sep 18 16:45:20 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv32144/libavcodec

Modified Files:
	utils.c 
Log Message:
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 ...


Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/utils.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- utils.c	12 Sep 2005 19:16:07 -0000	1.158
+++ utils.c	18 Sep 2005 14:45:17 -0000	1.159
@@ -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),





More information about the ffmpeg-cvslog mailing list