[x264-devel] commit: Fix compilation in gcc 3.4.x (issue in r946) (Jason Garrett-Glaser )
git version control
git at videolan.org
Fri Aug 22 03:22:10 CEST 2008
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Aug 21 21:23:08 2008 -0400| [af82aae3649ba73b4d6bf380fb58ba00527d44d7] | committer: Jason Garrett-Glaser
Fix compilation in gcc 3.4.x (issue in r946)
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.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=af82aae3649ba73b4d6bf380fb58ba00527d44d7
---
common/x86/util.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/x86/util.h b/common/x86/util.h
index 006c7ac..1e45969 100644
--- a/common/x86/util.h
+++ b/common/x86/util.h
@@ -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"
More information about the x264-devel
mailing list