mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 17:39:56 +00:00
fixing alignment, 2nd try
Originally committed as revision 2940 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
96d8b5a62c
commit
58c2182d72
@ -2996,8 +2996,8 @@ void ff_mpeg4_init_partitions(MpegEncContext *s)
|
|||||||
uint8_t *start= pbBufPtr(&s->pb);
|
uint8_t *start= pbBufPtr(&s->pb);
|
||||||
uint8_t *end= s->pb.buf_end;
|
uint8_t *end= s->pb.buf_end;
|
||||||
int size= end - start;
|
int size= end - start;
|
||||||
int pb_size = (size/3)&(~1);
|
int pb_size = (((int)start + size/3)&(~3)) - (int)start;
|
||||||
int tex_size= size - 2*pb_size;
|
int tex_size= (size - 2*pb_size)&(~3);
|
||||||
|
|
||||||
set_put_bits_buffer_size(&s->pb, pb_size);
|
set_put_bits_buffer_size(&s->pb, pb_size);
|
||||||
init_put_bits(&s->tex_pb, start + pb_size , tex_size);
|
init_put_bits(&s->tex_pb, start + pb_size , tex_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user