# HG changeset patch # User tmmm # Date 1060301538 0 # Node ID d413f9a2021448f6f0fb691da5cc41783af077b1 # Parent 2e43c9bdc9824d489c828fe2a8002a8c2f64a711 endian-conscious fix, courtesy of Sebastian Jedruszkiewicz diff -r 2e43c9bdc982 -r d413f9a20214 common.h --- a/common.h Tue Aug 05 14:08:28 2003 +0000 +++ b/common.h Fri Aug 08 00:12:18 2003 +0000 @@ -1045,8 +1045,11 @@ */ static inline int ff_get_fourcc(const char *s){ assert( strlen(s)==4 ); - +#ifndef WORDS_BIGENDIAN return (s[0]) + (s[1]<<8) + (s[2]<<16) + (s[3]<<24); +#else + return (s[3]) + (s[2]<<8) + (s[1]<<16) + (s[0]<<24); +#endif } #define MKTAG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24))