[x264-devel] Illegal Instruction Crash (OS X/Intel Mac)

Rarity sddddd at tiscali.co.uk
Fri May 26 09:16:04 CEST 2006


x264 crashes in the following manner:

<begin quote>
$ ffmpeg -i /tmp/test.avi -f rawvideo -s 320x240 - | ./x264 -o ./ 
output.mov - 320x240
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --prefix=/usr/local --disable-mmx --enable-faac -- 
enable-mp3lame --enable-x264 --enable-gpl
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on May 26 2006 07:32:49, gcc: 4.0.1 (Apple Computer, Inc.  
build 5250)
Input #0, avi, from '/tmp/test.avi':
   Duration: 00:00:02.8, start: 0.000000, bitrate: 1228 kb/s
   Stream #0.0, 25.00 fps(r): Video: h264, yuv420p, 700x394
   Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, rawvideo, to 'pipe:':
   Stream #0.0, 25.00 fps(c): Video: rawvideo, yuv420p, 320x240,  
q=2-31, 200 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
Press [q] to stop encoding
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
Illegal instruction
<end quote>

gdb indicates some sort of stack corruption. Additionally, the  
following change just after
line 54 of 'common/cpu.c' stops prevents x264 from crashing:

<begin quote>
   x264_cpu_cpuid( 1, &eax, &ebx, &ecx, &edx );

     /* NEW*/
     return 0;

     if( (edx&0x00800000) == 0 )
     {
         /* No MMX */
         return 0;
     }
<end quote>

The latest nightly build of VLC also crashes when attempting to  
transcode to H.264.

Thanks.





-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list