mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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
|
|
@ -200,8 +200,10 @@ static av_cold int vaapi_encode_vp8_init(AVCodecContext *avctx)
|
|||
|
||||
ctx->codec = &vaapi_encode_type_vp8;
|
||||
|
||||
// Packed headers are not currently supported.
|
||||
ctx->va_packed_headers = 0;
|
||||
// No packed headers are currently desired. VP8 has no metadata
|
||||
// which would be useful to write, and no existing driver supports
|
||||
// adding them anyway.
|
||||
ctx->desired_packed_headers = 0;
|
||||
|
||||
ctx->surface_width = FFALIGN(avctx->width, 16);
|
||||
ctx->surface_height = FFALIGN(avctx->height, 16);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue