[libbluray-devel] Use correct type for data offsets

hpi1 git at videolan.org
Fri Sep 15 12:13:29 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Sep 15 12:52:42 2017 +0300| [fbf4522d92d8fca93bd2ec51cc29105c0bc45478] | committer: hpi1

Use correct type for data offsets

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

 src/libbluray/bdnav/index_parse.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdnav/index_parse.c b/src/libbluray/bdnav/index_parse.c
index 363fe9b1..0deb6176 100644
--- a/src/libbluray/bdnav/index_parse.c
+++ b/src/libbluray/bdnav/index_parse.c
@@ -176,7 +176,7 @@ static int _parse_app_info(BITSTREAM *bs, INDX_APP_INFO *app_info)
 #define INDX_SIG1  ('I' << 24 | 'N' << 16 | 'D' << 8 | 'X')
 
 static int _parse_header(BITSTREAM *bs,
-                         int *index_start, int *extension_data_start,
+                         uint32_t *index_start, uint32_t *extension_data_start,
                          uint32_t *indx_version)
 {
     if (!bdmv_parse_header(bs, INDX_SIG1, indx_version)) {
@@ -193,7 +193,7 @@ static INDX_ROOT *_indx_parse(BD_FILE_H *fp)
 {
     BITSTREAM  bs;
     INDX_ROOT *index;
-    int        indexes_start, extension_data_start;
+    uint32_t   indexes_start, extension_data_start;
 
     if (bs_init(&bs, fp) < 0) {
         BD_DEBUG(DBG_NAV, "index.bdmv: read error\n");
@@ -224,7 +224,7 @@ static INDX_ROOT *_indx_parse(BD_FILE_H *fp)
     }
 
     if (extension_data_start) {
-        BD_DEBUG(DBG_NAV | DBG_CRIT, "index.bdmv: unknown extension data at %d\n", extension_data_start);
+        BD_DEBUG(DBG_NAV | DBG_CRIT, "index.bdmv: unknown extension data at %u\n", (unsigned)extension_data_start);
     }
 
     return index;



More information about the libbluray-devel mailing list