diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-13 12:13:33 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-22 14:08:20 +0100 |
commit | cc8163e1a3601a56f722a4720516e860bf1c6198 (patch) | |
tree | d024d6a6300f2c013910239746ede9a97971518a /libavcodec/alsdec.c | |
parent | 7513234bdd93f80593bfee3eb2da8c8f0d3992da (diff) | |
download | ffmpeg-cc8163e1a3601a56f722a4720516e860bf1c6198.tar.gz |
avcodec: more correct printf specifiers
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r-- | libavcodec/alsdec.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <thilo.borgmann _at_ googlemail.com> */ +#include <inttypes.h> + #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; } |