diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-02-12 14:25:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-02-12 14:25:48 +0000 |
commit | 9b0dfb27ab5e911547d86142cd8f67d296692bad (patch) | |
tree | 2535ab641984f1c2913f4a27c2c2b488174bd3bd | |
parent | 67053c30930c537a1c9291d87faaf7aaa071b629 (diff) | |
download | ffmpeg-9b0dfb27ab5e911547d86142cd8f67d296692bad.tar.gz |
slightly improve *_TIMER
Originally committed as revision 7948 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 4ca5353f5f..1c81c32f1a 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -314,7 +314,7 @@ tend= read_time();\ 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\ |