openairplay/airplay2-receiver

Why the over-read for RTP?

Closed this issue · 0 comments

Here there is an over-read:

self.sequence_no = struct.unpack('>I', b'\0' + data[1:4])[0]

Yet here we read only 2 bytes - was there some particular design decision here?

self.sequence_no = struct.unpack(">H", data[2:4])[0]

Do you just want the Int value to be 4 bytes instead of 2?