changeset 4429:ba087eea0a53 libavcodec

Kill a warning and don't use modulus.
author banan
date Mon, 29 Jan 2007 08:58:03 +0000
parents eeb16216b454
children 407e7fd9b4f4
files cook.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cook.c	Mon Jan 29 08:37:22 2007 +0000
+++ b/cook.c	Mon Jan 29 08:58:03 2007 +0000
@@ -303,7 +303,7 @@
      *     (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;