]> granicus.if.org Git - libx264/commitdiff
Fix bug in checkasm
authorDavid Conrad <lessen42@gmail.com>
Fri, 26 Jun 2009 20:09:44 +0000 (13:09 -0700)
committerFiona Glaser <fiona@x264.com>
Fri, 26 Jun 2009 20:11:17 +0000 (13:11 -0700)
frame_init_lowres_core check didn't check the C plane.
However, all x86 and PPC assembly was correct regardless of the unit test being incorrect.

tools/checkasm.c

index 2b882962b40cf436427f4e0a23cff050bb8defbf..a42cd06b77f2bb64497fa8ca72fc7ba8384fc2d4 100644 (file)
@@ -855,7 +855,7 @@ static int check_mc( int cpu_ref, int cpu_new )
     if( mc_a.frame_init_lowres_core != mc_ref.frame_init_lowres_core )
     {
         uint8_t *dstc[4] = { buf3, buf3+1024, buf3+2048, buf3+3072 };
-        uint8_t *dsta[4] = { buf4, buf4+1024, buf4+2048, buf3+3072 };
+        uint8_t *dsta[4] = { buf4, buf4+1024, buf4+2048, buf4+3072 };
         set_func_name( "lowres_init" );
         ok = 1; used_asm = 1;
         for( w=40; w<=48; w+=8 )