projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67053c3
)
slightly improve *_TIMER
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Feb 2007 14:25:48 +0000
(14:25 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Feb 2007 14:25:48 +0000
(14:25 +0000)
Originally committed as revision 7948 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/common.h
patch
|
blob
|
history
diff --git
a/libavutil/common.h
b/libavutil/common.h
index
4ca5353
..
1c81c32
100644
(file)
--- 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\