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/alac.c | |
parent | 7513234bdd93f80593bfee3eb2da8c8f0d3992da (diff) | |
download | ffmpeg-cc8163e1a3601a56f722a4720516e860bf1c6198.tar.gz |
avcodec: more correct printf specifiers
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index f972531195..5272f8416c 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -45,6 +45,8 @@ * 32bit samplerate */ +#include <inttypes.h> + #include "libavutil/channel_layout.h" #include "avcodec.h" #include "get_bits.h" @@ -276,7 +278,7 @@ static int decode_element(AVCodecContext *avctx, AVFrame *frame, int ch_index, else output_samples = alac->max_samples_per_frame; if (!output_samples || output_samples > alac->max_samples_per_frame) { - av_log(avctx, AV_LOG_ERROR, "invalid samples per frame: %d\n", + av_log(avctx, AV_LOG_ERROR, "invalid samples per frame: %"PRIu32"\n", output_samples); return AVERROR_INVALIDDATA; } @@ -288,7 +290,7 @@ static int decode_element(AVCodecContext *avctx, AVFrame *frame, int ch_index, return ret; } } else if (output_samples != alac->nb_samples) { - av_log(avctx, AV_LOG_ERROR, "sample count mismatch: %u != %d\n", + av_log(avctx, AV_LOG_ERROR, "sample count mismatch: %"PRIu32" != %d\n", output_samples, alac->nb_samples); return AVERROR_INVALIDDATA; } @@ -500,7 +502,8 @@ static int alac_set_info(ALACContext *alac) alac->max_samples_per_frame = bytestream2_get_be32u(&gb); if (!alac->max_samples_per_frame || alac->max_samples_per_frame > INT_MAX / sizeof(int32_t)) { - av_log(alac->avctx, AV_LOG_ERROR, "max samples per frame invalid: %u\n", + av_log(alac->avctx, AV_LOG_ERROR, + "max samples per frame invalid: %"PRIu32"\n", alac->max_samples_per_frame); return AVERROR_INVALIDDATA; } |