From cc8163e1a3601a56f722a4720516e860bf1c6198 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 13 Mar 2014 12:13:33 +0100 Subject: avcodec: more correct printf specifiers --- libavcodec/tscc2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libavcodec/tscc2.c') 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 + #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; } -- cgit v1.2.3