Mercurial > libavcodec.hg
comparison cook.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 | e353d3a41e0b |
children | bb35ea566fe5 |
comparison
equal
deleted
inserted
replaced
9182:12f23f37664b | 9183:7b62479a31ec |
---|---|
300 * I'm too lazy though, should be something like | 300 * I'm too lazy though, should be something like |
301 * for(i=0 ; i<bitamount/64 ; i++) | 301 * for(i=0 ; i<bitamount/64 ; i++) |
302 * (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]); | 302 * (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]); |
303 * Buffer alignment needs to be checked. */ | 303 * Buffer alignment needs to be checked. */ |
304 | 304 |
305 off = (int)((long)inbuffer & 3); | 305 off = (intptr_t)inbuffer & 3; |
306 buf = (const uint32_t*) (inbuffer - off); | 306 buf = (const uint32_t*) (inbuffer - off); |
307 c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8)))); | 307 c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8)))); |
308 bytes += 3 + off; | 308 bytes += 3 + off; |
309 for (i = 0; i < bytes/4; i++) | 309 for (i = 0; i < bytes/4; i++) |
310 obuf[i] = c ^ buf[i]; | 310 obuf[i] = c ^ buf[i]; |