aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-03-26 01:34:02 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-03-26 01:34:02 +0000
commitd4efacff64f8b07c24eabb38f855ff06a10dcc31 (patch)
tree38c75992a3c97211d804d6ef061d458b8d9fc405 /libavcodec
parentbefa8e665c460244ba523131e6c22b19ab269e77 (diff)
downloadffmpeg-d4efacff64f8b07c24eabb38f855ff06a10dcc31.tar.gz
Use intptr_t when casting pointers to int.
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dsputil.c2
-rw-r--r--libavcodec/h263.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 86a6c37793..3e7bfc35e3 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -4271,7 +4271,7 @@ int ff_check_alignment(void){
static int did_fail=0;
DECLARE_ALIGNED_16(int, aligned);
- if((long)&aligned & 15){
+ if((intptr_t)&aligned & 15){
if(!did_fail){
#if HAVE_MMX || HAVE_ALTIVEC
av_log(NULL, AV_LOG_ERROR,
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index b2adae6e8a..170513dc27 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -3056,7 +3056,7 @@ void ff_mpeg4_init_partitions(MpegEncContext *s)
uint8_t *start= pbBufPtr(&s->pb);
uint8_t *end= s->pb.buf_end;
int size= end - start;
- int pb_size = (((long)start + size/3)&(~3)) - (long)start;
+ int pb_size = (((intptr_t)start + size/3)&(~3)) - (intptr_t)start;
int tex_size= (size - 2*pb_size)&(~3);
set_put_bits_buffer_size(&s->pb, pb_size);