changeset 7118:83f0d3a52f14 libavcodec

Simplify
author vitor
date Mon, 23 Jun 2008 20:46:42 +0000
parents f5ca0e18d5de
children 39be110f531d
files ra144.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Mon Jun 23 20:44:58 2008 +0000
+++ b/ra144.c	Mon Jun 23 20:46:42 2008 +0000
@@ -183,7 +183,7 @@
     int b = 0;
 
     for (x=0; x<10; x++) {
-        res = (((0x1000000 - (*data) * (*data)) >> 12) * res) >> 12;
+        res = (((0x1000000 - data[x]*data[x]) >> 12) * res) >> 12;
 
         if (res == 0)
             return 0;
@@ -192,7 +192,6 @@
             b++;
             res <<= 2;
         }
-        data++;
     }
 
     res = t_sqrt(res);