shithub: aacenc

Download patch

ref: a06702ebb8ba6076be47abd071492701f3478e0f
parent: c8f26d7e0db0458e158b06ccaef0d79d3f34adb6
author: Takashi Yoshi <takashi@yoshi.email>
date: Tue Dec 26 08:06:37 EST 2017

Fix compilation on big endian systems

The WORDS_BIGENDIAN macro is defined in config.h, but this file is not
included in mp4write.
This will result in the code using byte swapping functions incorrectly
and compilation fails because __builtin_bswap16 is not defined.

--- a/frontend/mp4write.c
+++ b/frontend/mp4write.c
@@ -17,6 +17,10 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>