projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b8a69
)
Kill a warning and don't use modulus.
author
Benjamin Larsson
<banan@ludd.ltu.se>
Mon, 29 Jan 2007 08:58:03 +0000
(08:58 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Mon, 29 Jan 2007 08:58:03 +0000
(08:58 +0000)
Originally committed as revision 7754 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cook.c
patch
|
blob
|
history
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
178b103
..
75752ab
100644
(file)
--- 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;