summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-18 01:01:54 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-18 01:01:54 +0000
commit2c656386403bb3d0993c9c8d460aec4dc7b3e8ca (patch)
treefad508acd23446bd07db4e064b7e26feeeba1f61 /libavcodec
parent80a49958532b598dfc95d985dc84fae91d2ae293 (diff)
x86_64 pointer typecast fix by (Martin Drab <drab kepler.fjfi.cvut cz>)
Originally committed as revision 3845 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 441721f883..007efc8f6d 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);