diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-10 15:35:59 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-11 13:13:41 +0100 |
commit | d92024f18fa3d69937cb2575f3a8bf973df02430 (patch) | |
tree | b3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/omadec.c | |
parent | 7caf48e036583cd5833f5dc07ab14960dff25e04 (diff) | |
download | ffmpeg-d92024f18fa3d69937cb2575f3a8bf973df02430.tar.gz |
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/omadec.c')
-rw-r--r-- | libavformat/omadec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 6c27458545..9d9c7264f7 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -40,6 +40,8 @@ * Supported decoders: ATRAC3, ATRAC3+, MP3, LPCM */ +#include <inttypes.h> + #include "libavutil/channel_layout.h" #include "avformat.h" #include "internal.h" @@ -219,7 +221,7 @@ static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) if (geob->datasize < 64) { av_log(s, AV_LOG_ERROR, - "Invalid GEOB data size: %u\n", geob->datasize); + "Invalid GEOB data size: %"PRIu32"\n", geob->datasize); return AVERROR_INVALIDDATA; } @@ -243,7 +245,7 @@ static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) return AVERROR_INVALIDDATA; } oc->rid = AV_RB32(&gdata[OMA_ENC_HEADER_SIZE + 28]); - av_log(s, AV_LOG_DEBUG, "RID: %.8x\n", oc->rid); + av_log(s, AV_LOG_DEBUG, "RID: %.8"PRIx32"\n", oc->rid); memcpy(oc->iv, &header[0x58], 8); hex_log(s, AV_LOG_DEBUG, "IV", oc->iv, 8); @@ -372,7 +374,7 @@ static int oma_read_header(AVFormatContext *s) channel_id = (codec_params >> 10) & 7; if (!channel_id) { av_log(s, AV_LOG_ERROR, - "Invalid ATRAC-X channel id: %d\n", channel_id); + "Invalid ATRAC-X channel id: %"PRIu32"\n", channel_id); return AVERROR_INVALIDDATA; } st->codec->channel_layout = ff_oma_chid_to_native_layout[channel_id - 1]; |