[xiph-commits] r9825 - branches/theora-oil/lib

j at svn.xiph.org j at svn.xiph.org
Sun Aug 21 12:43:16 PDT 2005


Author: j
Date: 2005-08-21 12:43:14 -0700 (Sun, 21 Aug 2005)
New Revision: 9825

Modified:
   branches/theora-oil/lib/dct_decode.c
Log:
do not cast PixelPtr in FilterVert, so its the same as in FilterHoriz

Modified: branches/theora-oil/lib/dct_decode.c
===================================================================
--- branches/theora-oil/lib/dct_decode.c	2005-08-21 19:42:23 UTC (rev 9824)
+++ branches/theora-oil/lib/dct_decode.c	2005-08-21 19:43:14 UTC (rev 9825)
@@ -717,10 +717,11 @@
   PixelPtr -= 2*LineLength;
 
   for ( j = 0; j < 8; j++ ) {
-    FiltVal = ( (ogg_int32_t)PixelPtr[0] ) -
-      ( (ogg_int32_t)PixelPtr[LineLength] * 3 ) +
-      ( (ogg_int32_t)PixelPtr[2 * LineLength] * 3 ) -
-      ( (ogg_int32_t)PixelPtr[3 * LineLength] );
+    FiltVal = 
+      ( PixelPtr[0] ) -
+      ( PixelPtr[LineLength] * 3 ) +
+      ( PixelPtr[2 * LineLength] * 3 ) -
+      ( PixelPtr[3 * LineLength] );
 
     FiltVal = *(BoundingValuePtr+((FiltVal + 4) >> 3));
 



More information about the commits mailing list