Encode long frames properly as a 63 bit unsigned integer offset by 1