mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 09:41:32 +08:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user