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
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue