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
Stop the approximation in bessel() once it does no longer improve.
This is faster. Originally committed as revision 21038 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer
16 years ago
parent
9df9b810c5
commit
2efcf29275
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavcodec/resample2.c
+ 3
- 1
libavcodec/resample2.c
View File
@@ -76,11 +76,13 @@ typedef struct AVResampleContext{
*/
static double bessel(double x){
double v=1;
double lastv=0;
double t=1;
int i;
x= x*x/4;
for(i=1; i<50; i++){
for(i=1; v != lastv; i++){
lastv=v;
t *= x/(i*i);
v += t;
}
Write
Preview
Loading…
Cancel
Save