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/svq3.c | |
parent | 7513234bdd93f80593bfee3eb2da8c8f0d3992da (diff) | |
download | ffmpeg-cc8163e1a3601a56f722a4720516e860bf1c6198.tar.gz |
avcodec: more correct printf specifiers
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index ce42fcf8d3..4916314c08 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -40,6 +40,8 @@ * http://samples.libav.org/V-codecs/SVQ3/Vertical400kbit.sorenson3.mov */ +#include <inttypes.h> + #include "libavutil/attributes.h" #include "internal.h" #include "avcodec.h" @@ -614,7 +616,8 @@ static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type) vlc = svq3_get_ue_golomb(&h->gb); if (vlc >= 25) { - av_log(h->avctx, AV_LOG_ERROR, "luma prediction:%d\n", vlc); + av_log(h->avctx, AV_LOG_ERROR, + "luma prediction:%"PRIu32"\n", vlc); return -1; } @@ -683,7 +686,7 @@ static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type) if (!IS_INTRA16x16(mb_type) && (!IS_SKIP(mb_type) || h->pict_type == AV_PICTURE_TYPE_B)) { if ((vlc = svq3_get_ue_golomb(&h->gb)) >= 48) { - av_log(h->avctx, AV_LOG_ERROR, "cbp_vlc=%d\n", vlc); + av_log(h->avctx, AV_LOG_ERROR, "cbp_vlc=%"PRIu32"\n", vlc); return -1; } @@ -805,7 +808,7 @@ static int svq3_decode_slice_header(AVCodecContext *avctx) } if ((slice_id = svq3_get_ue_golomb(&h->gb)) >= 3) { - av_log(h->avctx, AV_LOG_ERROR, "illegal slice type %d \n", slice_id); + av_log(h->avctx, AV_LOG_ERROR, "illegal slice type %u \n", slice_id); return -1; } @@ -988,7 +991,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) return -1; buf = av_malloc(buf_len); - av_log(avctx, AV_LOG_DEBUG, "watermark size: %dx%d\n", + av_log(avctx, AV_LOG_DEBUG, "watermark size: %ux%u\n", watermark_width, watermark_height); av_log(avctx, AV_LOG_DEBUG, "u1: %x u2: %x u3: %x compressed data size: %d offset: %d\n", @@ -1003,7 +1006,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) s->watermark_key = ff_svq1_packet_checksum(buf, buf_len, 0); s->watermark_key = s->watermark_key << 16 | s->watermark_key; av_log(avctx, AV_LOG_DEBUG, - "watermark key %#x\n", s->watermark_key); + "watermark key %#"PRIx32"\n", s->watermark_key); av_free(buf); #else av_log(avctx, AV_LOG_ERROR, |