Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lavc/vaapi_encode: Don't pass VAConfigAttribEncPackedHeaders with val…
…ue set to 0 Recent Intel i965 driver commit strictly disallows application to set unsupported attribute values, VA_ENC_PACKED_HEADER_NONE (0) is not used in Intel i965 driver, so application shouldn't pass this value to the driver. On the other hand, VA_ENC_PACKED_HEADER_NONE (0) means the driver doesn't support any packed header mode, so application also shouldn't pass packed header to driver if a driver returns VA_ENC_PACKED_HEADER_NONE (0), the driver should work without VAConfigAttribEncPackedHeaders set for this case. In addition, VA_ATTRIB_NOT_SUPPORTED and VA_ENC_PACKED_HEADER_NONE make thing messy, we will deprecate VA_ENC_PACKED_HEADER_NONE in the future. See intel/libva#178 for more information. This fixes broken vp9 encoder on Kably Lake with Intel I965 driver. Signed-off-by: Haihao Xiang <[email protected]>
- Loading branch information