Don't set headers twice
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user