diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-26 04:34:02 +0300 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-26 04:34:02 +0300 |
commit | d4efacff64f8b07c24eabb38f855ff06a10dcc31 (patch) | |
tree | 38c75992a3c97211d804d6ef061d458b8d9fc405 /libavcodec/h263.c | |
parent | befa8e665c460244ba523131e6c22b19ab269e77 (diff) |
Use intptr_t when casting pointers to int.
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |