diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-11 02:09:01 +0400 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-11 02:09:01 +0400 |
commit | e6b22522c94cfccda97018e52ab65da8c69d8a56 (patch) | |
tree | 4ecb09a4ae3f895d70ab882d841347d943eef0a2 /libavcodec/cook.c | |
parent | 6b7917ba3ba16cbbcc81d9e007b26f82dd06400f (diff) |
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 0dd1d48627..8b85e597d9 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -316,12 +316,12 @@ static inline int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes) /* 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]; |