apedec: fix handling of packet sizes that are not a multiple of 4 bytes