[SCM] libav/experimental: sanm: Use correct printf conversion specifiers for POSIX int types

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:04:04 UTC 2014


The following commit has been merged in the experimental branch:
commit 019a28cd630286ecb2b06ee62025a17c821b493e
Author: Diego Biurrun <diego at biurrun.de>
Date:   Sat Jul 26 05:12:48 2014 -0700

    sanm: Use correct printf conversion specifiers for POSIX int types

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 9f2f22b..41c6551 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -1356,14 +1356,14 @@ static int decode_frame(AVCodecContext *avctx, void *data,
             pos  = bytestream2_tell(&ctx->gb);
 
             if (bytestream2_get_bytes_left(&ctx->gb) < size) {
-                av_log(avctx, AV_LOG_ERROR, "Incorrect chunk size %d.\n", size);
+                av_log(avctx, AV_LOG_ERROR, "Incorrect chunk size %"PRIu32".\n", size);
                 break;
             }
             switch (sig) {
             case MKBETAG('N', 'P', 'A', 'L'):
                 if (size != PALETTE_SIZE * 3) {
                     av_log(avctx, AV_LOG_ERROR,
-                           "Incorrect palette block size %d.\n", size);
+                           "Incorrect palette block size %"PRIu32".\n", size);
                     return AVERROR_INVALIDDATA;
                 }
                 for (i = 0; i < PALETTE_SIZE; i++)
@@ -1389,7 +1389,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
                     }
                 } else {
                     if (size < PALETTE_DELTA * 2 + 4) {
-                        av_log(avctx, AV_LOG_ERROR, "Incorrect palette change block size %d.\n",
+                        av_log(avctx, AV_LOG_ERROR,
+                               "Incorrect palette change block size %"PRIu32".\n",
                                size);
                         return AVERROR_INVALIDDATA;
                     }
@@ -1412,7 +1413,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
                 break;
             default:
                 bytestream2_skip(&ctx->gb, size);
-                av_log(avctx, AV_LOG_DEBUG, "Unknown/unsupported chunk %x.\n", sig);
+                av_log(avctx, AV_LOG_DEBUG,
+                       "Unknown/unsupported chunk %"PRIx32".\n", sig);
                 break;
             }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list