Mercurial > libavcodec.hg
comparison atrac3.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 | 25e9cb2b9477 |
children | 8b28e74de2c0 |
comparison
equal
deleted
inserted
replaced
12127:9ba7d2a5b20a | 12128:ee740a4e80c5 |
---|---|
177 const uint32_t* buf; | 177 const uint32_t* buf; |
178 uint32_t* obuf = (uint32_t*) out; | 178 uint32_t* obuf = (uint32_t*) out; |
179 | 179 |
180 off = (intptr_t)inbuffer & 3; | 180 off = (intptr_t)inbuffer & 3; |
181 buf = (const uint32_t*) (inbuffer - off); | 181 buf = (const uint32_t*) (inbuffer - off); |
182 c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); | 182 c = be2ne_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); |
183 bytes += 3 + off; | 183 bytes += 3 + off; |
184 for (i = 0; i < bytes/4; i++) | 184 for (i = 0; i < bytes/4; i++) |
185 obuf[i] = c ^ buf[i]; | 185 obuf[i] = c ^ buf[i]; |
186 | 186 |
187 if (off) | 187 if (off) |