prevent crash in case x264 refused to initialize.