vaapi_encode: Add support for writing arbitrary additional packed headers