Mercurial > libavcodec.hg
comparison atrac3.c @ 12129:8b28e74de2c0 libavcodec
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | ee740a4e80c5 |
children | d66dc6f9cc55 |
comparison
equal
deleted
inserted
replaced
12128:ee740a4e80c5 | 12129:8b28e74de2c0 |
---|---|
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 = be2ne_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); | 182 c = av_be2ne32((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) |