--- bitstream.h 2002/06/12 20:38:40 1.6 +++ bitstream.h 2002/06/20 14:05:58 1.8 @@ -127,7 +127,12 @@ void BitstreamWriteVopHeader(Bitstream * const bs, const MBParam * pParam, - const FRAMEINFO * frame); + const FRAMEINFO * frame, + int vop_coded); + +void BitstreamWriteUserData(Bitstream * const bs, + uint8_t * data, + const int length); /* initialise bitstream structure */ @@ -243,7 +248,7 @@ static uint32_t __inline BitstreamPos(const Bitstream * const bs) { - return 8 * ((uint32_t) bs->tail - (uint32_t) bs->start) + bs->pos; + return 8 * ((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos; } @@ -254,7 +259,7 @@ static uint32_t __inline BitstreamLength(Bitstream * const bs) { - uint32_t len = (uint32_t) bs->tail - (uint32_t) bs->start; + uint32_t len = (ptr_t) bs->tail - (ptr_t) bs->start; if (bs->pos) { uint32_t b = bs->buf;