[libbluray-devel] bits: make bs_seek() static

hpi1 git at videolan.org
Mon Aug 8 18:26:56 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Aug  8 19:12:26 2016 +0300| [1a854b6b595e641cc3446d62313e86ead473ef48] | committer: hpi1

bits: make bs_seek() static

It is not used outside of bits.h

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

 src/util/bits.c | 4 ++--
 src/util/bits.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/util/bits.c b/src/util/bits.c
index c595934..0d11519 100644
--- a/src/util/bits.c
+++ b/src/util/bits.c
@@ -95,7 +95,7 @@ void bb_seek( BITBUFFER *bb, int64_t off, int whence)
     }
 }
 
-void bs_seek( BITSTREAM *bs, int64_t off, int whence)
+static void _bs_seek( BITSTREAM *bs, int64_t off, int whence)
 {
     int64_t b;
 
@@ -144,7 +144,7 @@ void bb_seek_byte( BITBUFFER *bb, int64_t off)
 
 void bs_seek_byte( BITSTREAM *s, int64_t off)
 {
-    bs_seek(s, off << 3, SEEK_SET);
+    _bs_seek(s, off << 3, SEEK_SET);
 }
 
 
diff --git a/src/util/bits.h b/src/util/bits.h
index 41ab66d..1266131 100644
--- a/src/util/bits.h
+++ b/src/util/bits.h
@@ -57,7 +57,7 @@ typedef struct {
 BD_PRIVATE void bb_init( BITBUFFER *bb, const uint8_t *p_data, size_t i_data );
 BD_PRIVATE int  bs_init( BITSTREAM *bs, BD_FILE_H *fp );
 BD_PRIVATE void bb_seek( BITBUFFER *bb, int64_t off, int whence);
-BD_PRIVATE void bs_seek( BITSTREAM *bs, int64_t off, int whence);
+//BD_PRIVATE void bs_seek( BITSTREAM *bs, int64_t off, int whence);
 //BD_PRIVATE void bb_seek_byte( BITBUFFER *bb, int64_t off);
 BD_PRIVATE void bs_seek_byte( BITSTREAM *s, int64_t off);
 BD_PRIVATE void bb_skip( BITBUFFER *bb, size_t i_count );



More information about the libbluray-devel mailing list