vaapi_h265: Fix slice header writing