Mercurial > libavcodec.hg
diff cook.c @ 12128:ee740a4e80c5 libavcodec
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:09:01 +0000 |
parents | 0ae85799341a |
children | 8b28e74de2c0 |
line wrap: on
line diff
--- a/cook.c Sat Jul 10 14:36:53 2010 +0000 +++ b/cook.c Sat Jul 10 22:09:01 2010 +0000 @@ -316,12 +316,12 @@ /* FIXME: 64 bit platforms would be able to do 64 bits at a time. * I'm too lazy though, should be something like * for(i=0 ; i<bitamount/64 ; i++) - * (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]); + * (int64_t)out[i] = 0x37c511f237c511f2^be2ne_64(int64_t)in[i]); * Buffer alignment needs to be checked. */ off = (intptr_t)inbuffer & 3; buf = (const uint32_t*) (inbuffer - off); - c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8)))); + c = be2ne_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8)))); bytes += 3 + off; for (i = 0; i < bytes/4; i++) obuf[i] = c ^ buf[i];