[libbluray-devel] Fix compiler warning: incorrect type used in bdjo_parse.c

tourettes git at videolan.org
Sun Nov 16 13:07:48 CET 2014


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Nov 16 13:58:21 2014 +0200| [edd5d43a4f86cbd54330d2afd31c68a3022da844] | committer: hpi1

Fix compiler warning: incorrect type used in bdjo_parse.c

bs_pos() returns off_t instead of int64_t

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

 src/libbluray/bdj/bdjo_parse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/bdjo_parse.c b/src/libbluray/bdj/bdjo_parse.c
index 7ab9e7b..79a5839 100644
--- a/src/libbluray/bdj/bdjo_parse.c
+++ b/src/libbluray/bdj/bdjo_parse.c
@@ -161,7 +161,7 @@ static int _count_app_strings(BITSTREAM *bs, uint16_t data_length, uint16_t pref
 {
     int      count = 0;
     uint32_t bytes_read = 0;
-    int64_t  pos = bs_pos(bs) >> 3;
+    off_t    pos = bs_pos(bs) >> 3;
 
     while (bytes_read < data_length) {
         bs_skip(bs, prefix_bytes * 8);



More information about the libbluray-devel mailing list