Commit d1815d55 authored by ramiro's avatar ramiro

use intptr_t to cast pointers to int in codecs maintained by benjamin larsson


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18027 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cb2d2bfd
......@@ -230,7 +230,7 @@ static int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){
const uint32_t* buf;
uint32_t* obuf = (uint32_t*) out;
off = (int)((long)inbuffer & 3);
off = (intptr_t)inbuffer & 3;
buf = (const uint32_t*) (inbuffer - off);
c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8))));
bytes += 3 + off;
......
......@@ -302,7 +302,7 @@ static inline int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes)
* (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]);
* Buffer alignment needs to be checked. */
off = (int)((long)inbuffer & 3);
off = (intptr_t)inbuffer & 3;
buf = (const uint32_t*) (inbuffer - off);
c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8))));
bytes += 3 + off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment