]> git.videolan.org Git - x264.git/commitdiff
Fix compilation in gcc 3.4.x (issue in r946)
authorJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 22 Aug 2008 01:23:08 +0000 (21:23 -0400)
committerJason Garrett-Glaser <darkshikari@gmail.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 006c7ac1959114533d6c18a0c39f7edc08cfc672..1e45969bb3a9f4337b8a8f2e0eb3c9d251679aa3 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"