Fix adaptation layer handling, continuity counter check and payload detection.