diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-09-18 23:30:48 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-09-23 14:42:34 +0100 |
commit | 851a63c22a824ce5f8e5da0d2ea2ef1d461b4742 (patch) | |
tree | 1178084232d9aa5bce11195dad764f4469d3c21a /libavcodec/vaapi_encode.h | |
parent | bf726c26fde26601a90daacf1b10a9860d21321c (diff) | |
download | ffmpeg-851a63c22a824ce5f8e5da0d2ea2ef1d461b4742.tar.gz |
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.h')
-rw-r--r-- | libavcodec/vaapi_encode.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index 5d6fdcf336..091889f9ae 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -116,9 +116,8 @@ typedef struct VAAPIEncodeContext { // Use low power encoding mode. int low_power; - // Supported packed headers (initially the desired set, modified - // later to what is actually supported). - unsigned int va_packed_headers; + // Desired packed headers. + unsigned int desired_packed_headers; // The required size of surfaces. This is probably the input // size (AVCodecContext.width|height) aligned up to whatever @@ -140,6 +139,8 @@ typedef struct VAAPIEncodeContext { unsigned int va_rc_mode; // Bitrate for codec-specific encoder parameters. unsigned int va_bit_rate; + // Packed headers which will actually be sent. + unsigned int va_packed_headers; // Configuration attributes to use when creating va_config. VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES]; |