From 08affb92a763a2de2161f6aae0a15ced1c586439 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Mon, 26 Oct 2026 16:42:16 +0000 Subject: [PATCH] Disallow zero bitrate values for VideoEncoderConfig This is covered by WPT test webcodecs/video-encoder-config.https.any.html. --- index.src.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.src.html b/index.src.html index 86f54698..7a71a801 100644 --- a/index.src.html +++ b/index.src.html @@ -2234,7 +2234,8 @@ = 0, return `false`. 3. If {{VideoEncoderConfig/displayWidth}} = 0 or {{VideoEncoderConfig/displayHeight}} = 0, return `false`. -4. Return `true`. +4. If {{VideoEncoderConfig/bitrate}} = 0, return `false`. +5. Return `true`.
codec