Fixed a memory leak in x264 encode path and minor improvements for QSV encoder