Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

ALAC encoder produces invalid bitstream on Apple Silicon(in native mode) #24

Description

@NickolayGerasimenko

While running on M1 in Native mode, the ALAC encoder produces invalid bitstream.
Root cause:
Swap32BtoN implementation is wrong.

Could you merge this fix into master:

#elif defined (__arm__) || defined(__aarch64__)
#define TARGET_RT_LITTLE_ENDIAN 1
#endif

https://github.com/philippe44/alac/blob/master/EndianPortable.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions