Mercurial > libavcodec.hg
comparison atrac3.c @ 9183:7b62479a31ec libavcodec
use intptr_t to cast pointers to int in codecs maintained by benjamin larsson
author | ramiro |
---|---|
date | Tue, 17 Mar 2009 20:47:31 +0000 |
parents | 043574c5c153 |
children | 54bc8a2727b0 |
comparison
equal
deleted
inserted
replaced
9182:12f23f37664b | 9183:7b62479a31ec |
---|---|
228 int i, off; | 228 int i, off; |
229 uint32_t c; | 229 uint32_t c; |
230 const uint32_t* buf; | 230 const uint32_t* buf; |
231 uint32_t* obuf = (uint32_t*) out; | 231 uint32_t* obuf = (uint32_t*) out; |
232 | 232 |
233 off = (int)((long)inbuffer & 3); | 233 off = (intptr_t)inbuffer & 3; |
234 buf = (const uint32_t*) (inbuffer - off); | 234 buf = (const uint32_t*) (inbuffer - off); |
235 c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); | 235 c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); |
236 bytes += 3 + off; | 236 bytes += 3 + off; |
237 for (i = 0; i < bytes/4; i++) | 237 for (i = 0; i < bytes/4; i++) |
238 obuf[i] = c ^ buf[i]; | 238 obuf[i] = c ^ buf[i]; |