Revision 58c2182d

View differences:

libavcodec/h263.c
2996 2996
    uint8_t *start= pbBufPtr(&s->pb);
2997 2997
    uint8_t *end= s->pb.buf_end;
2998 2998
    int size= end - start;
2999
    int pb_size = (size/3)&(~1);
3000
    int tex_size= size - 2*pb_size;
2999
    int pb_size = (((int)start + size/3)&(~3)) - (int)start;
3000
    int tex_size= (size - 2*pb_size)&(~3);
3001 3001
    
3002 3002
    set_put_bits_buffer_size(&s->pb, pb_size);
3003 3003
    init_put_bits(&s->tex_pb, start + pb_size           , tex_size);

Also available in: Unified diff