Correctly parse compressed position with no timestamp
This commit is contained in:
@@ -423,7 +423,9 @@ export class Frame implements IFrame {
|
|||||||
offset += 7;
|
offset += 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.payload.length < offset + 19) return { payload: null };
|
// Need at least enough characters for compressed position (13) or
|
||||||
|
// uncompressed (19). Allow parsing to continue if compressed-length is present.
|
||||||
|
if (this.payload.length < offset + 13) return { payload: null };
|
||||||
|
|
||||||
// Check if compressed format
|
// Check if compressed format
|
||||||
const isCompressed = this.isCompressedPosition(
|
const isCompressed = this.isCompressedPosition(
|
||||||
|
|||||||
Reference in New Issue
Block a user