shithub: aacdec

Download patch

ref: 8e28afb1d0ccc92d47cb852401049b5bca9be9ba
parent: f930bf895924ffacfbe88662f139508aaf1cc337
author: Cameron Cawley <ccawley2011@gmail.com>
date: Wed Dec 20 19:34:00 EST 2017

Fix compilation with GCC 4.7.4

--- a/frontend/mp4read.c
+++ b/frontend/mp4read.c
@@ -64,8 +64,10 @@
 #ifndef WORDS_BIGENDIAN
 #ifdef _MSC_VER
 	return _byteswap_ushort(u16);
-#else
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
 	return __builtin_bswap16(u16);
+#else
+	return (u16<<8)|(u16>>8);
 #endif
 #else
 	return u16;