FS#12135 - IAP large packet support
Attached patch is an attempt to add support for IAP large packets. This is needed for some devices that (try to) send a bitmap to the player, using iap packets longer than the currently supported maximum size of 255 bytes. It uses a state machine to detect the start-of-frame, detect standard/large packet, aggregate payload data, keep track of checksum and verify the checksum, instead of the previous ad hoc logic.
This is only an attempt at large packet size support, because I don't have an iap capable player myself.
This patch can be used to see if large packets work now and to see if the old standard size iap packets still work properly. Early tests with an earlier version of this patch showed signs of corruption by overflow and problems handling devices sending a lot of packets in a short time (e.g. holding a button on a remote).
To apply use -p1 in the patch command because this patch was generated from git, e.g. "patch -p1 < iap_large_packet.patch"
This task depends upon