diff common.h @ 243:54e4581f1c9d libavutil

slightly improve *_TIMER
author michael
date Mon, 12 Feb 2007 14:25:48 +0000
parents 4154bbb6cbd1
children 7ce4d7cde0fb
line wrap: on
line diff
--- a/common.h	Sun Feb 11 22:07:06 2007 +0000
+++ b/common.h	Mon Feb 12 14:25:48 2007 +0000
@@ -314,7 +314,7 @@
   static uint64_t tsum=0;\
   static int tcount=0;\
   static int tskip_count=0;\
-  if(tcount<2 || tend - tstart < 8*tsum/tcount){\
+  if(tcount<2 || tend - tstart < FFMAX(8*tsum/tcount, 2000)){\
       tsum+= tend - tstart;\
       tcount++;\
   }else\