From 3c4c2a459c0686bbfa0e40c5685aa2efe13e37c8 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sat, 29 Aug 2026 19:53:42 +0200 Subject: [PATCH] Remove Chromium version check --- src/codec-data.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/codec-data.ts b/src/codec-data.ts index 5d80fee..9afcab2 100644 --- a/src/codec-data.ts +++ b/src/codec-data.ts @@ -22,7 +22,6 @@ import { textEncoder, toDataView, toUint8Array, - getChromiumVersion, isChromium, popcount, setUint24, @@ -2412,8 +2411,8 @@ export const determineVideoPacketType = ( // In addition to IDR, Recovery Point SEI also counts as a valid H.264 keyframe by current consensus. // See https://github.com/w3c/webcodecs/issues/650 for the relevant discussion. WebKit and Firefox have - // always supported them, but Chromium hasn't, therefore the (admittedly dirty) version check. - if (type === AvcNalUnitType.SEI && (!isChromium() || getChromiumVersion()! >= 144)) { + // always supported them, but Chromium hasn't. + if (type === AvcNalUnitType.SEI && !isChromium()) { const nalUnit = packetData.subarray(loc.offset, loc.offset + loc.length); const bytes = removeEmulationPreventionBytes(nalUnit); let pos = 1; // Skip NALU header