From a349458e6769df0ddd62cb12784e7205c8d1ca58 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 13 May 2013 21:40:53 +0200 Subject: [PATCH] jpeg2000dec: Use correct printf length modifier for pointer differences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also eliminate an unnecessary cast. Fixes the following warning: jpeg2000dec.c:1200:20: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘long long unsigned int’ --- libavcodec/jpeg2000dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 11211d3c8e..f8a89b1e44 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1196,8 +1196,8 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) break; default: av_log(s->avctx, AV_LOG_ERROR, - "unsupported marker 0x%.4X at pos 0x%lX\n", - marker, (uint64_t)(s->buf - s->buf_start - 4)); + "unsupported marker 0x%.4X at pos 0x%tX\n", + marker, s->buf - s->buf_start - 4); s->buf += len - 2; break; }