refactor file libx264.c