Hi all, As I understand there could be issues to edit/create FLAC files in 64-bit due to different structure sizes (data alignment and data structure padding added by 64-bit compilers). I don't know if this have been dealt with before in this list. I suggest the following addition to the headers (understood by most compilers) #pragma pack(push,4) FLAC_structures ... #pragma pack(pop) That is, retain 32-bit packing of structures even on 64-bit. But I wonder if this is enough to keep compatibility with FLAC files created in 32-bit, 64-bit pointers are still 8-bit. Ideas, anyone? Cheers Jerker
Erik de Castro Lopo
2011-May-30 06:00 UTC
[Flac-dev] 64-bit FLAC structure sizes and padding
Jerker B?ck wrote:> As I understand there could be issues to edit/create FLAC files in 64-bit > due to different structure sizes (data alignment and data structure padding > added by 64-bit compilers). I don't know if this have been dealt with before > in this list.What makes you thnk there could be issues? FLAC has been used reliably on 64 bit Linux systems for years. There is no problem moving FLAC files from 32 bit to 64 bit machines or moving them the other way. Nor is their any problem moving FLAC files between big endian and little endian machines. If you of a problem, please let us know, but don't assume there is a problem unless you have actually seen one. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/