Commit e56558f5 authored by michael's avatar michael

x86_64 pointer typecast fix by (Martin Drab <drab kepler.fjfi.cvut cz>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3845 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f6828d4c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment