]> git.sesse.net Git - x264/commitdiff
Fix compilation in gcc 3.4.x (issue in r946)
authorFiona Glaser <fiona@x264.com>
Fri, 22 Aug 2008 01:23:08 +0000 (21:23 -0400)
committerFiona Glaser <fiona@x264.com>
Fri, 22 Aug 2008 01:23:08 +0000 (21:23 -0400)
Due to a bug in gcc 3.4.x, in certain cases of inlining, the array_non_zero_int_mmx inline asssembly is miscompiled and causes a crash with --subme 7 --8x8dct.
This minor hack fixes this issue.

common/x86/util.h

index 7d638c273e3b3cbcaf528450c456ac33ed994944..6271a249667b027494868b34c606a5ef700ecde9 100644 (file)
@@ -100,7 +100,7 @@ static ALWAYS_INLINE int array_non_zero_int_mmx( void *v, int i_count )
 {
     if(i_count == 128)
     {
-        int nonzero;
+        int nonzero = 0;
         asm(
             "movq     (%1),    %%mm0 \n"
             "por      8(%1),   %%mm0 \n"