changeset 7104:8a4a7069737d libavcodec

Simplify t_sqrt()
author vitor
date Mon, 23 Jun 2008 20:13:07 +0000
parents 3e9c18e58216
children b55bedad89ad
files ra144.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Mon Jun 23 20:12:12 2008 +0000
+++ b/ra144.c	Mon Jun 23 20:13:07 2008 +0000
@@ -61,13 +61,13 @@
  */
 static int t_sqrt(unsigned int x)
 {
-    int s = 0;
+    int s = 2;
     while (x > 0xfff) {
         s++;
         x = x >> 2;
     }
 
-    return (ff_sqrt(x << 20) << s) << 2;
+    return ff_sqrt(x << 20) << s;
 }
 
 /**