vaapi_encode: Check packed header capabilities
This improves behaviour with drivers which do not support packed headers, such as AMD VCE on mesa/gallium.
This commit is contained in:
parent
80a5d05108
commit
892bbbcdc1
5 changed files with 54 additions and 7 deletions
|
@ -101,6 +101,9 @@ typedef struct VAAPIEncodeContext {
|
|||
unsigned int va_rt_format;
|
||||
// Rate control mode.
|
||||
unsigned int va_rc_mode;
|
||||
// Supported packed headers (initially the desired set, modified
|
||||
// later to what is actually supported).
|
||||
unsigned int va_packed_headers;
|
||||
|
||||
// The required size of surfaces. This is probably the input
|
||||
// size (AVCodecContext.width|height) aligned up to whatever
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue