OSDN Git Service

Fix packed headers attribute test in vaCreateConfig()
authorMark Thompson <sw@jkqxz.net>
Tue, 13 Feb 2018 19:44:54 +0000 (19:44 +0000)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 15 Mar 2018 00:59:33 +0000 (08:59 +0800)
commit7c5820d07db4c686be0866e17d27c1e798f784f0
tree5783e5f6859395d640a75d1a1501fe6bf64b4a67
parent65ee29822ca2d077540118d194767ca73b4fe83b
Fix packed headers attribute test in vaCreateConfig()

If packed headers are supported, then the provided value must be some
(possibly empty) subset of the supported headers.

This fixes config creation with an empty packed header set, which the
user may pass if they don't want to provide any packed headers.  This
pattern is used in at least libavcodec, where VP9 encoding is broken
prior to this change.

Since there is intent to deprecate this behaviour in future, also add
warnings to this case and the other possible failure modes here.

Fixes #362.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
src/i965_drv_video.c