[libbluray-devel] printf() size_t with %zu
Rafaël Carré
git at videolan.org
Mon Jan 9 10:25:30 CET 2012
libbluray | branch: master | Rafaël Carré <funman at videolan.org> | Mon Jan 2 12:55:19 2012 -0500| [5fcb523f9c58b12b7f5e0161786c26e59400b13d] | committer: hpi1
printf() size_t with %zu
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=5fcb523f9c58b12b7f5e0161786c26e59400b13d
---
src/libbluray/decoders/pg_decode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/decoders/pg_decode.c b/src/libbluray/decoders/pg_decode.c
index 18e1c0a..ab9b66b 100644
--- a/src/libbluray/decoders/pg_decode.c
+++ b/src/libbluray/decoders/pg_decode.c
@@ -117,7 +117,7 @@ static int _decode_rle(BITBUFFER *bb, BD_PG_OBJECT *p)
p->img = realloc(p->img, rle_size * sizeof(BD_PG_RLE_ELEM));
if (!p->img) {
- BD_DEBUG(DBG_DECODE | DBG_CRIT, "pg_decode_object(): relloc(%d) failed\n",
+ BD_DEBUG(DBG_DECODE | DBG_CRIT, "pg_decode_object(): relloc(%zu) failed\n",
rle_size * sizeof(BD_PG_RLE_ELEM));
return 0;
}
@@ -159,7 +159,7 @@ static int _decode_rle(BITBUFFER *bb, BD_PG_OBJECT *p)
rle_size *= 2;
p->img = realloc(p->img, rle_size * sizeof(BD_PG_RLE_ELEM));
if (!p->img) {
- BD_DEBUG(DBG_DECODE | DBG_CRIT, "pg_decode_object(): relloc(%d) failed\n",
+ BD_DEBUG(DBG_DECODE | DBG_CRIT, "pg_decode_object(): relloc(%zu) failed\n",
rle_size * sizeof(BD_PG_RLE_ELEM));
X_FREE(tmp);
return 0;
More information about the libbluray-devel
mailing list