diff options
author | Ramiro Polla | 2009-03-17 20:47:31 +0000 |
---|---|---|
committer | Ramiro Polla | 2009-03-17 20:47:31 +0000 |
commit | e05c8d068203c7cba9afdffe851aa1732bb8a809 (patch) | |
tree | 70b29176daa66d22434b886f5f5510bbe4baf5ed /libavcodec/cook.c | |
parent | d4da3e4790fabcd0fb27c025c12e6d960d22ef80 (diff) |
use intptr_t to cast pointers to int in codecs maintained by benjamin larsson
Originally committed as revision 18027 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index e476dede2d..975607abbb 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -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; |