In some scenarios, x264_encoder_open() can fail after it has allocated a x264_param_t structure, and is not freed before the function returns NULL to the caller. Call x264_param_cleanup() in that case.
x264_encoder_open()
x264_param_t
NULL
x264_param_cleanup()
Fixes #75, and replaces !168.