for example:
chunksize=8
sync_offset=40
these code here:
if sync_offset != 0:
print('Resync')
data = data[sync_offset:]
the data's length will change to 188*8-40 and will cause unpack error when unpack the last segment of chunksize cause it's length has only 148 bytes
for example:
chunksize=8
sync_offset=40
these code here:
the data's length will change to 188*8-40 and will cause unpack error when unpack the last segment of chunksize cause it's length has only 148 bytes