This change allows VideoColorSpaceInit dictionary values to be null, which allows VideoColorSpace to be used in place of a VideoColorSpaceInit as was always intended.
The alternative fix is to allow the values to be undefined, and that would be preferable except that it is not backwards-compatible.
Surprisingly no changes to the algorithms are required, they already behave correctly when null is passed.
Fixes: https://github.com/w3c/webcodecs/issues/561
This change allows
VideoColorSpaceInit
dictionary values to benull
, which allowsVideoColorSpace
to be used in place of aVideoColorSpaceInit
as was always intended.The alternative fix is to allow the values to be
undefined
, and that would be preferable except that it is not backwards-compatible.Surprisingly no changes to the algorithms are required, they already behave correctly when
null
is passed.Preview | Diff