[libbluray-devel] Fixed [bb,bs]_pos() return type
hpi1
git at videolan.org
Fri May 6 14:38:44 CEST 2011
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 6 15:37:43 2011 +0300| [9ecd18c492b720fba3f8e410d48ec7d524064f65] | committer: hpi1
Fixed [bb,bs]_pos() return type
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9ecd18c492b720fba3f8e410d48ec7d524064f65
---
src/util/bits.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/bits.h b/src/util/bits.h
index 1a1b099..c693aef 100644
--- a/src/util/bits.h
+++ b/src/util/bits.h
@@ -71,12 +71,12 @@ static inline void bs_init( BITSTREAM *bs, BD_FILE_H *fp )
bb_init(&bs->bb, bs->buf, bs->size);
}
-static inline int bb_pos( const BITBUFFER *bb )
+static inline off_t bb_pos( const BITBUFFER *bb )
{
return 8 * ( bb->p - bb->p_start ) + 8 - bb->i_left;
}
-static inline int bs_pos( const BITSTREAM *bs )
+static inline off_t bs_pos( const BITSTREAM *bs )
{
return bs->pos * 8 + bb_pos(&bs->bb);
}
More information about the libbluray-devel
mailing list