diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-13 15:13:33 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-22 17:08:20 +0400 |
commit | cc8163e1a3601a56f722a4720516e860bf1c6198 (patch) | |
tree | d024d6a6300f2c013910239746ede9a97971518a /libavcodec/tscc2.c | |
parent | 7513234bdd93f80593bfee3eb2da8c8f0d3992da (diff) |
avcodec: more correct printf specifiers
Diffstat (limited to 'libavcodec/tscc2.c')
-rw-r--r-- | libavcodec/tscc2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 3d22fd7ce9..bd1854b899 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -24,6 +24,8 @@ * TechSmith Screen Codec 2 decoder */ +#include <inttypes.h> + #define BITSTREAM_READER_LE #include "avcodec.h" #include "get_bits.h" @@ -226,7 +228,8 @@ static int tscc2_decode_frame(AVCodecContext *avctx, void *data, bytestream2_init(&gb, buf, buf_size); frame_type = bytestream2_get_byte(&gb); if (frame_type > 1) { - av_log(avctx, AV_LOG_ERROR, "Incorrect frame type %d\n", frame_type); + av_log(avctx, AV_LOG_ERROR, "Incorrect frame type %"PRIu32"\n", + frame_type); return AVERROR_INVALIDDATA; } @@ -309,7 +312,7 @@ static int tscc2_decode_frame(AVCodecContext *avctx, void *data, } } if (bytestream2_get_bytes_left(&gb) < size) { - av_log(avctx, AV_LOG_ERROR, "Invalid slice size (%d/%d)\n", + av_log(avctx, AV_LOG_ERROR, "Invalid slice size (%"PRIu32"/%u)\n", size, bytestream2_get_bytes_left(&gb)); return AVERROR_INVALIDDATA; } |