This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
simplify
Originally committed as revision 8890 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
18 years ago
parent
e300ab4ed2
commit
fd735e4b77
1 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-3
libavutil/internal.h
+ 2
- 3
libavutil/internal.h
View File
@@ -190,14 +190,13 @@ static inline int ff_sqrt(int a)
{
int ret=0;
int s;
int ret_sq=0;
if(a<128) return ff_sqrt_tab[a];
for(s=15; s>=0; s--){
int b=
ret_sq +
(1<<(s*2)) + (ret<<s)*2;
int b= (1<<(s*2)) + (ret<<s)*2;
if(b<=a){
ret_sq
=b;
a-
=b;
ret+= 1<<s;
}
}
Write
Preview
Loading…
Cancel
Save