knik0 / faac

Freeware Advanced Audio Coder faac mirror
https://sourceforge.net/projects/faac/
Other
179 stars 60 forks source link

Fix compilation with older versions of GCC (and on big-endian systems) #13

Closed sideeffect42 closed 6 years ago

sideeffect42 commented 6 years ago

faac fails to compile with older versions of GCC (< 4.6). In addition some endianness checks return an incorrect result.

This pull request fixes the endianness checks in mp4write and compilation with older versions of GCC. The patch has been tested with GCC 4.0, 4.2, 4.6 and 7.2.