From 2be726346efb4679fad7102bff475991035792bd Mon Sep 17 00:00:00 2001 From: Lewis Moten Date: Fri, 17 May 2024 15:16:52 -0400 Subject: [PATCH] Don't set headers twice --- PacketUtils.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/PacketUtils.js b/PacketUtils.js index 570bdaa..afba80d 100644 --- a/PacketUtils.js +++ b/PacketUtils.js @@ -219,11 +219,6 @@ export const pack = (bytes) => { ...dataLengthCrcBits, ...dataCrcBits, ]; - // pad headers to take full bytes - while(headers.length % 8 !== 0) { - headers.push(0); - } - const unusedBitCount = getPacketizationHeaderUnusedBitCount(); headers.push(...new Array(unusedBitCount).fill(0));