[FFmpeg-devel] [PATCH 3/5] j2kdec: av_log formatting use %lx instead of %x

Michael Niedermayer michaelni at gmx.at
Sun Jan 1 21:15:18 CET 2012


On Sun, Jan 01, 2012 at 04:26:13PM +0100, Jean First wrote:
> 
> Signed-off-by: Jean First <jeanfirst at gmail.com>
> ---
>  libavcodec/j2kdec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
> index d605b13..7cd72cb 100644
> --- a/libavcodec/j2kdec.c
> +++ b/libavcodec/j2kdec.c
> @@ -921,7 +921,7 @@ static int decode_codestream(J2kDecoderContext *s)
>  
>          marker = bytestream_get_be16(&s->buf);
>          if(s->avctx->debug & FF_DEBUG_STARTCODE)
> -            av_log(s->avctx, AV_LOG_DEBUG, "marker 0x%.4X at pos 0x%x\n", marker, s->buf - s->buf_start - 4);
> +            av_log(s->avctx, AV_LOG_DEBUG, "marker 0x%.4X at pos 0x%lx\n", marker, s->buf - s->buf_start - 4);

i think "t" is the correct one for pointer differences

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Incandescent light bulbs waste a lot of energy as heat so the EU forbids them.
Their replacement, compact fluorescent lamps, much more expensive, dont fit in
many old lamps, flicker, contain toxic mercury, produce a fraction of the light
that is claimed and in a unnatural spectrum rendering colors different than
in natural light. Ah and we now need to turn the heaters up more in winter to
compensate the lower wasted heat. Who wins? Not the environment, thats for sure
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120101/6a34fe01/attachment.asc>


More information about the ffmpeg-devel mailing list