openairplay / airplay2-receiver

AirPlay 2 Receiver - Python implementation
2.13k stars 133 forks source link

Why the over-read for RTP? #23

Closed systemcrash closed 3 years ago

systemcrash commented 3 years ago

Here there is an over-read: https://github.com/openairplay/airplay2-receiver/blob/d28733ec60e624925d1f0a081c0e838a083d8b68/ap2/connections/audio.py#L47

Yet here we read only 2 bytes - was there some particular design decision here? https://github.com/openairplay/airplay2-receiver/blob/d28733ec60e624925d1f0a081c0e838a083d8b68/ap2/connections/audio.py#L39

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