w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
975 stars 137 forks source link

Allow nulls in VideoColorSpaceInit #564

Closed sandersdan closed 1 year ago

sandersdan commented 1 year ago

Fixes: https://github.com/w3c/webcodecs/issues/561

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.


Preview | Diff