w3c / webcodecs

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

Attempting to configure an encoder with a bitrate of 0 should fail #816

Open padenot opened 4 months ago

padenot commented 4 months ago

https://w3c.github.io/webcodecs/#valid-videoencoderconfig

This errors out in Chromium, but not in Firefox, as things stand. Firefox considers 0 and not present as the same, Chrome rejects. I don't have a WebKit-based browser on this Linux desktop, so I'm not sure what it does.

Should it fail or no?

youennf commented 4 months ago

WebKit considers not present as equal to 0.