This improves behaviour with drivers which do not support packed headers, such as AMD VCE on mesa/gallium. (cherry picked from commit 892bbbcdc171ff0d08d69636a240ffb95f54243c)
Showing the changes to libavcodec/vaapi_encode.h (1 of 5 files). Show all
Unified · Split
| @@ -101,6 +101,9 @@ typedef struct VAAPIEncodeContext { · 100 unmodified lines | ||
| 101 | 101 | unsigned int va_rt_format; |
| 102 | 102 | // Rate control mode. |
| 103 | 103 | unsigned int va_rc_mode; |
| 104 | + // Supported packed headers (initially the desired set, modified | |
| 105 | + // later to what is actually supported). | |
| 106 | + unsigned int va_packed_headers; | |
| 104 | 107 | |
| 105 | 108 | // The required size of surfaces. This is probably the input |
| 106 | 109 | // size (AVCodecContext.width|height) aligned up to whatever |