[libbluray-devel] [PATCH 4/4] printf() size_t with %zu
Rafaël Carré
funman at videolan.org
Mon Jan 2 18:55:19 CET 2012
---
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;
--
1.7.7.3
More information about the libbluray-devel
mailing list