This repository was archived by the owner on Jan 31, 2025. It is now read-only.
Commit b177f85
committed
Fix packed headers attribute test in vaCreateConfig()
If packed headers are not supported then the only valid value for this
attribute is VA_ATTRIB_NOT_SUPPORTED. 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 <[email protected]>1 parent 64645ce commit b177f85
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
1435 | | - | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1436 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1437 | 1450 | | |
1438 | 1451 | | |
1439 | 1452 | | |
| |||
0 commit comments