diff options
Diffstat (limited to 'libavcodec/xwddec.c')
-rw-r--r-- | libavcodec/xwddec.c | 14 |
1 files changed, 9 insertions, 5 deletions
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 <inttypes.h> + #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; } |