diff mjpeg.c @ 1266:ec946cb74397 libavcodec

Warning fixes.
author mellum
date Thu, 15 May 2003 01:34:47 +0000
parents dde68a430ba9
children 61317ffc64d5
line wrap: on
line diff
--- a/mjpeg.c	Thu May 15 00:43:43 2003 +0000
+++ b/mjpeg.c	Thu May 15 01:34:47 2003 +0000
@@ -478,7 +478,7 @@
     int size= get_bit_count(&s->pb) - start*8;
     int i, ff_count;
     uint8_t *buf= s->pb.buf + start;
-    int align= (-(int)(buf))&3;
+    int align= (-(size_t)(buf))&3;
     
     assert((size&7) == 0);
     size >>= 3;