x264encoder fixes