Log in

View Full Version : strange x264 @ windows problem


RadScorpion
29th December 2008, 10:50
Hi,

I'm facing some strange crashes with x264. At first I was using MSVC-compiled builds (as both static and dynamic libraries) and experienced crashes when using CQP mode (when compiled as release) and total random crashes when using debug builds in any mode. After reading some discussion threads I've decided to build x264 with msys/mingw. And now the crashes are even more strange. It appears that depending on the size of video (???) sometimes it works and sometimes it does not. I've tried linking a static .a library as well as a .dll with no difference. The encoder works only when I disable SSE2. But the x264 executable works always nice.

I'm having no crashes with linux system with the same encoder settings.

Does anyone have a clue ?

I'm using gcc 3.4.5 (mingw-vista special r3), yasm 0.7.2.2153 and pthreads-win32 2.8.0.0. My OS is Vista 64-bit. CPU: Intel Q9550.
[Update- also crashes with gcc 4.3.2]

Thanks,

Igor

RadScorpion
29th December 2008, 11:54
Ok. I've already found my answer in this thread (http://forum.doom9.org/showthread.php?p=1148099#post1148099).
Thanks.

Dark Shikari
29th December 2008, 13:41
Add force_arg_align_pointer to x264_slicetype_frame_cost.

This will probably be fixed in a few days, I'll just add stack_align to all calls to that function.

RadScorpion
29th December 2008, 14:04
Yepp. I've done something like that. Thanks