vaapi_encode: Clean up the packed header configuration
Add a larger warning more clearly explaining the consequences of missing packed header support in the driver. Also only write the extradata if the user actually requests it via the GLOBAL_HEADER flag.
This commit is contained in:
parent
bf726c26fd
commit
851a63c22a
8 changed files with 80 additions and 68 deletions
|
@ -1064,7 +1064,7 @@ static av_cold int vaapi_encode_h265_init(AVCodecContext *avctx)
|
|||
if (avctx->level == FF_LEVEL_UNKNOWN)
|
||||
avctx->level = priv->level;
|
||||
|
||||
ctx->va_packed_headers =
|
||||
ctx->desired_packed_headers =
|
||||
VA_ENC_PACKED_HEADER_SEQUENCE | // VPS, SPS and PPS.
|
||||
VA_ENC_PACKED_HEADER_SLICE | // Slice headers.
|
||||
VA_ENC_PACKED_HEADER_MISC; // SEI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue