[AMLCodec] Properly handle rotation
Fix typo in commit 0fdc55f2d0afe226083d0ced8a164d707ac0f276