support ffmpeg 1.2.1 and x264 module