[cvs] / xvidcore / src / bitstream / bitstream.h Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/bitstream.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15, Tue Nov 26 23:44:10 2002 UTC revision 1.16, Sun Feb 9 19:32:52 2003 UTC
# Line 301  Line 301 
301  static uint32_t __inline  static uint32_t __inline
302  BitstreamPos(const Bitstream * const bs)  BitstreamPos(const Bitstream * const bs)
303  {  {
304          return 8 * ((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos;          return((uint32_t)(8*((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos));
305  }  }
306    
307    
# Line 312  Line 312 
312  static uint32_t __inline  static uint32_t __inline
313  BitstreamLength(Bitstream * const bs)  BitstreamLength(Bitstream * const bs)
314  {  {
315          uint32_t len = (ptr_t) bs->tail - (ptr_t) bs->start;          uint32_t len = (uint32_t)((ptr_t)bs->tail - (ptr_t)bs->start);
316    
317          if (bs->pos) {          if (bs->pos) {
318                  uint32_t b = bs->buf;                  uint32_t b = bs->buf;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4