[FFmpeg-devel] [PATCH] Warning fix: use intptr_t for integer pointer math

Diego Biurrun diego
Fri May 8 22:02:33 CEST 2009


On Wed, May 06, 2009 at 04:24:59PM -0500, Daniel Verkamp wrote:
> Not tested, but presumably this was not correct on x86-64...

'make test' passes with your patch applied.

> libavcodec/x86/h264_i386.h: In function 'decode_significance_x86':
> libavcodec/x86/h264_i386.h:41: warning: cast from pointer to integer of
> different size
> libavcodec/x86/h264_i386.h:42: warning: cast from pointer to integer of
> different size
> libavcodec/x86/h264_i386.h: In function 'decode_significance_8x8_x86':
> libavcodec/x86/h264_i386.h:94: warning: cast from pointer to integer of
> different size

I don't get those warnings with gcc 4.1.2, what version do you use?

Diego



More information about the ffmpeg-devel mailing list