1 frontend/mp4read.c | 18 +++++++++++++++---
2 1 file changed, 15 insertions(+), 3 deletions(-)
4 diff --git a/frontend/mp4read.c b/frontend/mp4read.c
5 index 9d92bf5..c8ca530 100644
6 --- a/frontend/mp4read.c
7 +++ b/frontend/mp4read.c
8 @@ -45,17 +45,29 @@ mp4config_t mp4config = { 0 };
10 static FILE *g_fin = NULL;
12 -static inline uint32_t bswap32(uint32_t u32)
13 +static inline uint32_t bswap32(const uint32_t u32)
15 #ifndef WORDS_BIGENDIAN
17 + return _byteswap_ulong(u32);
19 return __builtin_bswap32(u32);
26 -static inline uint16_t bswap16(uint16_t u16)
27 +static inline uint16_t bswap16(const uint16_t u16)
29 #ifndef WORDS_BIGENDIAN
30 - return __builtin_bswap16(u16);
32 + return _byteswap_ushort(u16);
34 + return __builtin_bswap16(u16);