Correctly parse compressed position with no timestamp

This commit is contained in:
2026-03-18 10:06:45 +01:00
parent 0ab62dab02
commit df266bab12

View File

@@ -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(