From cc8163e1a3601a56f722a4720516e860bf1c6198 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 13 Mar 2014 12:13:33 +0100 Subject: avcodec: more correct printf specifiers --- libavcodec/xwddec.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'libavcodec/xwddec.c') diff --git a/libavcodec/xwddec.c b/libavcodec/xwddec.c index 8963c96..eede5e5 100644 --- a/libavcodec/xwddec.c +++ b/libavcodec/xwddec.c @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/imgutils.h" #include "avcodec.h" #include "bytestream.h" @@ -75,9 +77,11 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, ncolors = bytestream2_get_be32u(&gb); bytestream2_skipu(&gb, header_size - (XWD_HEADER_SIZE - 20)); - av_log(avctx, AV_LOG_DEBUG, "pixformat %d, pixdepth %d, bunit %d, bitorder %d, bpad %d\n", + av_log(avctx, AV_LOG_DEBUG, + "pixformat %"PRIu32", pixdepth %"PRIu32", bunit %"PRIu32", bitorder %"PRIu32", bpad %"PRIu32"\n", pixformat, pixdepth, bunit, bitorder, bpad); - av_log(avctx, AV_LOG_DEBUG, "vclass %d, ncolors %d, bpp %d, be %d, lsize %d, xoffset %d\n", + av_log(avctx, AV_LOG_DEBUG, + "vclass %"PRIu32", ncolors %"PRIu32", bpp %"PRIu32", be %"PRIu32", lsize %"PRIu32", xoffset %"PRIu32"\n", vclass, ncolors, bpp, be, lsize, xoffset); av_log(avctx, AV_LOG_DEBUG, "red %0x, green %0x, blue %0x\n", rgb[0], rgb[1], rgb[2]); @@ -92,7 +96,7 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, } if (xoffset) { - avpriv_request_sample(avctx, "xoffset %d", xoffset); + avpriv_request_sample(avctx, "xoffset %"PRIu32"", xoffset); return AVERROR_PATCHWELCOME; } @@ -141,7 +145,7 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, } if (pixformat != XWD_Z_PIXMAP) { - av_log(avctx, AV_LOG_ERROR, "pixmap format %d unsupported\n", pixformat); + av_log(avctx, AV_LOG_ERROR, "pixmap format %"PRIu32" unsupported\n", pixformat); return AVERROR_PATCHWELCOME; } @@ -193,7 +197,7 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, if (avctx->pix_fmt == AV_PIX_FMT_NONE) { avpriv_request_sample(avctx, - "Unknown file: bpp %d, pixdepth %d, vclass %d", + "Unknown file: bpp %"PRIu32", pixdepth %"PRIu32", vclass %"PRIu32"", bpp, pixdepth, vclass); return AVERROR_PATCHWELCOME; } -- cgit v1.1