From 3db320ea0cef547027f859ac914d4f105a8dad5e Mon Sep 17 00:00:00 2001 From: Falk Hüffner Date: Thu, 15 May 2003 01:34:47 +0000 Subject: Warning fixes. Originally committed as revision 1884 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/mjpeg.c') diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 135066796f..58cf89fc33 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -478,7 +478,7 @@ static void escape_FF(MpegEncContext *s, int start) 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; -- cgit v1.2.3