From 2c656386403bb3d0993c9c8d460aec4dc7b3e8ca Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 18 Jan 2005 01:01:54 +0000 Subject: [PATCH] x86_64 pointer typecast fix by (Martin Drab ) Originally committed as revision 3845 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 441721f..007efc8 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -3009,7 +3009,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 = (((int)start + size/3)&(~3)) - (int)start; + int pb_size = (((long)start + size/3)&(~3)) - (long)start; int tex_size= (size - 2*pb_size)&(~3); set_put_bits_buffer_size(&s->pb, pb_size); -- 2.7.4