diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-29 00:29:27 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-29 00:29:27 +0000 |
commit | 58c2182d728507bd69496b172dced477fee9c4ca (patch) | |
tree | bed0fc4a1818107ac0ff751cac556388f5c10a3f | |
parent | 96d8b5a62c9a272ff1403bb86b5b01faec91ffec (diff) | |
download | ffmpeg-58c2182d728507bd69496b172dced477fee9c4ca.tar.gz |
fixing alignment, 2nd try
Originally committed as revision 2940 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index f2605c5fab..bb67cd11e8 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -2996,8 +2996,8 @@ 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 = (size/3)&(~1); - int tex_size= size - 2*pb_size; + int pb_size = (((int)start + size/3)&(~3)) - (int)start; + int tex_size= (size - 2*pb_size)&(~3); set_put_bits_buffer_size(&s->pb, pb_size); init_put_bits(&s->tex_pb, start + pb_size , tex_size); |