diff ra144.c @ 6833:37464a7b3f59 libavcodec

Use ff_sqrt() function instead of using a table
author vitor
date Wed, 21 May 2008 16:33:49 +0000
parents 9584a95fefcd
children bf3bc36715e6
line wrap: on
line diff
--- a/ra144.c	Sat May 17 14:51:49 2008 +0000
+++ b/ra144.c	Wed May 21 16:33:49 2008 +0000
@@ -71,7 +71,7 @@
         x = x >> 2;
     }
 
-    return (sqrt_table[x] << s) << 2;
+    return (ff_sqrt(x << 20) << s) << 2;
 }
 
 /* do 'voice' */