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/alsdec.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libavcodec/alsdec.c') diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index f7dee7de12..866e5ef4fa 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -25,6 +25,8 @@ * @author Thilo Borgmann */ +#include + #include "avcodec.h" #include "get_bits.h" #include "unary.h" @@ -703,7 +705,9 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) int offset = parcor_rice_table[sconf->coef_table][k][0]; quant_cof[k] = decode_rice(gb, rice_param) + offset; if (quant_cof[k] < -64 || quant_cof[k] > 63) { - av_log(avctx, AV_LOG_ERROR, "quant_cof %d is out of range\n", quant_cof[k]); + av_log(avctx, AV_LOG_ERROR, + "quant_cof %"PRIu32" is out of range\n", + quant_cof[k]); return AVERROR_INVALIDDATA; } } @@ -1378,7 +1382,8 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame) bd.block_length = div_blocks[b]; if (bd.block_length <= 0) { av_log(ctx->avctx, AV_LOG_WARNING, - "Invalid block length %d in channel data!\n", bd.block_length); + "Invalid block length %u in channel data!\n", + bd.block_length); continue; } -- cgit v1.2.3