[libbluray-devel] Added bs_end()

hpi1 git at videolan.org
Tue Nov 15 20:19:01 CET 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov 15 21:14:09 2011 +0200| [b716a8b6a6a81bf6f2604277bcccc02c61331731] | committer: hpi1

Added bs_end()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b716a8b6a6a81bf6f2604277bcccc02c61331731
---

 src/util/bits.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/util/bits.h b/src/util/bits.h
index c693aef..f83d2b2 100644
--- a/src/util/bits.h
+++ b/src/util/bits.h
@@ -81,6 +81,11 @@ static inline off_t bs_pos( const BITSTREAM *bs )
     return bs->pos * 8 + bb_pos(&bs->bb);
 }
 
+static inline off_t bs_end( const BITSTREAM *bs )
+{
+    return bs->end * 8;
+}
+
 static inline int bb_eof( const BITBUFFER *bb )
 {
     return bb->p >= bb->p_end ? 1: 0 ;



More information about the libbluray-devel mailing list