From d4efacff64f8b07c24eabb38f855ff06a10dcc31 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Thu, 26 Mar 2009 01:34:02 +0000 Subject: Use intptr_t when casting pointers to int. Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/avc.c') diff --git a/libavformat/avc.c b/libavformat/avc.c index 6ecea38a47..578e7d0462 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -25,7 +25,7 @@ const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end) { - const uint8_t *a = p + 4 - ((long)p & 3); + const uint8_t *a = p + 4 - ((intptr_t)p & 3); for( end -= 3; p < a && p < end; p++ ) { if( p[0] == 0 && p[1] == 0 && p[2] == 1 ) -- cgit v1.2.1