Commit 37ad2377 authored by Sam Hocevar's avatar Sam Hocevar

* check x264_cpu_detect() before calling AltiVec functions.


git-svn-id: svn://svn.videolan.org/x264/trunk@632 df754926-b1dd-0310-bc7b-ec298dee348c
parent 8aef0e94
......@@ -780,8 +780,11 @@ int main(int argc, char *argv[])
}
#endif
#elif ARCH_PPC
fprintf( stderr, "x264: ALTIVEC against C\n" );
ret = check_all( 0, X264_CPU_ALTIVEC );
if( x264_cpu_detect() & X264_CPU_ALTIVEC )
{
fprintf( stderr, "x264: ALTIVEC against C\n" );
ret = check_all( 0, X264_CPU_ALTIVEC );
}
#endif
if( ret == 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment