Initialize QSV encoder before querying parameters

Fixes crash with buffer set to 0