jpeg2000dec: Use correct printf length modifier for pointer differences
authorDiego Biurrun <diego@biurrun.de>
Mon, 13 May 2013 19:40:53 +0000 (21:40 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 14 May 2013 14:46:56 +0000 (16:46 +0200)
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

index 11211d3..f8a89b1 100644 (file)
@@ -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;
         }