[Ffmpeg-devel] [PATCH] from DivX, Part 7: MSVC fixes

Luca Barbato lu_zero
Wed Jan 25 13:56:59 CET 2006


Michael Niedermayer wrote:
>> 
>>Index: libavcodec/mjpeg.c
>>===================================================================
>>RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mjpeg.c,v
>>retrieving revision 1.114
>>diff -u -r1.114 mjpeg.c
>>--- libavcodec/mjpeg.c	18 Sep 2005 21:21:01 -0000	1.114
>>+++ libavcodec/mjpeg.c	16 Dec 2005 23:16:01 -0000
>>@@ -495,7 +495,7 @@
>>     int size= put_bits_count(&s->pb) - start*8;
>>     int i, ff_count;
>>     uint8_t *buf= s->pb.buf + start;
>>-    int align= (-(size_t)(buf))&3;
>>+    int align= (-(int)(buf))&3;
> 
> 
> this is going to trigger warnings on some compilers i think ...
> 

what about uintptr_t ?

lu

-- 

Luca Barbato

Gentoo/linux Developer		Gentoo/PPC Operational Leader
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list