changeset 243:54e4581f1c9d libavutil

slightly improve *_TIMER
author michael
date Mon, 12 Feb 2007 14:25:48 +0000
parents 2d2e2b4e50fa
children 9a977b2c7069
files common.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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\