diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-09-19 01:30:48 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-09-23 16:42:34 +0300 |
commit | 851a63c22a824ce5f8e5da0d2ea2ef1d461b4742 (patch) | |
tree | 1178084232d9aa5bce11195dad764f4469d3c21a /libavcodec/vaapi_encode_vp9.c | |
parent | bf726c26fde26601a90daacf1b10a9860d21321c (diff) |
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.
Diffstat (limited to 'libavcodec/vaapi_encode_vp9.c')
-rw-r--r-- | libavcodec/vaapi_encode_vp9.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/vaapi_encode_vp9.c b/libavcodec/vaapi_encode_vp9.c index d4069ec850..39bc868f3a 100644 --- a/libavcodec/vaapi_encode_vp9.c +++ b/libavcodec/vaapi_encode_vp9.c @@ -228,8 +228,10 @@ static av_cold int vaapi_encode_vp9_init(AVCodecContext *avctx) ctx->codec = &vaapi_encode_type_vp9; - // Packed headers are not currently supported. - ctx->va_packed_headers = 0; + // No packed headers are currently desired. They could be written, + // but there isn't any reason to do so - the one usable driver (i965) + // can write its own headers and there is no metadata to include. + ctx->desired_packed_headers = 0; // Surfaces must be aligned to superblock boundaries. ctx->surface_width = FFALIGN(avctx->width, 64); |