summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-05-13 21:40:53 +0200
committerDiego Biurrun <diego@biurrun.de>2013-05-14 16:46:56 +0200
commita349458e6769df0ddd62cb12784e7205c8d1ca58 (patch)
tree4e0bab717a9fd5919a194bb7ecf9cc421dee9cb9
parent5d9d8461fbb87046a7ca220d3676a045bd7ab46e (diff)
downloadffmpeg-streaming-a349458e6769df0ddd62cb12784e7205c8d1ca58.zip
ffmpeg-streaming-a349458e6769df0ddd62cb12784e7205c8d1ca58.tar.gz
jpeg2000dec: Use correct printf length modifier for pointer differences
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’
-rw-r--r--libavcodec/jpeg2000dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 11211d3..f8a89b1 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;
}
OpenPOWER on IntegriCloud