[xiph-commits] r15076 - in trunk/theora/lib/enc: . x86_64

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Jun 27 14:45:41 PDT 2008


Author: xiphmont
Date: 2008-06-27 14:45:39 -0700 (Fri, 27 Jun 2008)
New Revision: 15076

Modified:
   trunk/theora/lib/enc/dct_decode.c
   trunk/theora/lib/enc/x86_64/dct_decode_mmx.c
Log:
Correct an introduced bug that cam in the with the new loop filter asm;

My testing was flawed and there were several bounds errors in the new 
code written to reconcile the new ASM's expected data ordering.



Modified: trunk/theora/lib/enc/dct_decode.c
===================================================================
--- trunk/theora/lib/enc/dct_decode.c	2008-06-27 10:42:45 UTC (rev 15075)
+++ trunk/theora/lib/enc/dct_decode.c	2008-06-27 21:45:39 UTC (rev 15076)
@@ -731,8 +731,8 @@
 	    loop_filter_v(&pbi->LastFrameRecon[bp[0]],stride,bvp);
 	  if(bp+1<bp_right && !cp[1])
 	    loop_filter_h(&pbi->LastFrameRecon[bp[0]]+8,stride,bvp);
-	  if(bp+stride<bp_end && !cp[stride])
-	    loop_filter_v(&pbi->LastFrameRecon[bp[h]]+8,stride,bvp);
+	  if(bp+h<bp_end && !cp[h])
+	    loop_filter_v(&pbi->LastFrameRecon[bp[h]],stride,bvp);
 	}
 	bp++;
 	cp++;

Modified: trunk/theora/lib/enc/x86_64/dct_decode_mmx.c
===================================================================
--- trunk/theora/lib/enc/x86_64/dct_decode_mmx.c	2008-06-27 10:42:45 UTC (rev 15075)
+++ trunk/theora/lib/enc/x86_64/dct_decode_mmx.c	2008-06-27 21:45:39 UTC (rev 15076)
@@ -388,8 +388,8 @@
 	    loop_filter_v(&pbi->LastFrameRecon[bp[0]],stride,ll);
 	  if(bp+1<bp_right && !cp[1])
 	    loop_filter_h(&pbi->LastFrameRecon[bp[0]]+8,stride,ll);
-	  if(bp+stride<bp_end && !cp[stride])
-	    loop_filter_v(&pbi->LastFrameRecon[bp[h]]+8,stride,ll);
+	  if(bp+h<bp_end && !cp[h])
+	    loop_filter_v(&pbi->LastFrameRecon[bp[h]],stride,ll);
 	}
 	bp++;
 	cp++;



More information about the commits mailing list