macosforge / alac

The Apple Lossless Audio Codec (ALAC) is a lossless audio codec developed by Apple and deployed on all of its platforms and devices.
https://macosforge.github.io/alac/
Apache License 2.0
353 stars 63 forks source link

magic cookie is incorrect on little endian host #5

Open macosforgebot opened 13 years ago

macosforgebot commented 13 years ago

honeycomb77@… originally submitted this as ticket:5


In function ALACEncoder::GetMagicCookie(), mChannelLayoutTag is set without converting to big endian. Therefore, resulting magic cookie will be incorrect on little endian host.