Don't set headers twice
This commit is contained in:
@@ -219,11 +219,6 @@ export const pack = (bytes) => {
|
|||||||
...dataLengthCrcBits,
|
...dataLengthCrcBits,
|
||||||
...dataCrcBits,
|
...dataCrcBits,
|
||||||
];
|
];
|
||||||
// pad headers to take full bytes
|
|
||||||
while(headers.length % 8 !== 0) {
|
|
||||||
headers.push(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
const unusedBitCount = getPacketizationHeaderUnusedBitCount();
|
const unusedBitCount = getPacketizationHeaderUnusedBitCount();
|
||||||
headers.push(...new Array(unusedBitCount).fill(0));
|
headers.push(...new Array(unusedBitCount).fill(0));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user