[libbluray-devel] Use correct type

Ian Curtis git at videolan.org
Mon Jan 21 13:02:35 CET 2013


libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Mon Jan 21 13:43:54 2013 +0200| [e07b420a47bbc828f3feeabb33f71a03e52f6a0e] | committer: hpi1

Use correct type

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

 src/libbluray/bluray.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 21fbc45..35b451f 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -488,14 +488,14 @@ static int _open_m2ts(BLURAY *bd, BD_STREAM *st)
 
 static int _read_block(BLURAY *bd, BD_STREAM *st, uint8_t *buf)
 {
-    const int len = 6144;
+    const size_t len = 6144;
 
     if (st->fp) {
         BD_DEBUG(DBG_STREAM, "Reading unit [%d bytes] at %"PRIu64"... (%p)\n",
               len, st->clip_block_pos, bd);
 
         if (len + st->clip_block_pos <= st->clip_size) {
-            int read_len;
+            size_t read_len;
 
             if ((read_len = file_read(st->fp, buf, len))) {
                 if (read_len != len)



More information about the libbluray-devel mailing list