Fixed a bug in x264
4 threads seems to be stable