summaryrefslogtreecommitdiff
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2007-01-29 08:58:03 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2007-01-29 08:58:03 +0000
commit6e584be16c5f62557ee4b4e543bfa7158252f88c (patch)
tree7d4017aa1f9dac29ec2be91ec5d33b8b11a106b5 /libavcodec/cook.c
parenta5b8a69c70bd3432c5248b380a9280dbdd94b299 (diff)
Kill a warning and don't use modulus.
Originally committed as revision 7754 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 178b10360a..75752abda3 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -303,7 +303,7 @@ static inline int decode_bytes(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 = (uint32_t)inbuffer % 4;
+ off = (int)((long)inbuffer & 3);
buf = (uint32_t*) (inbuffer - off);
c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8))));
bytes += 3 + off;