[FFmpeg-devel] [PATCH] fix printf length modifier in mpeg12.c

Uoti Urpala uoti.urpala
Thu Mar 13 20:23:46 CET 2008


On Thu, 2008-03-13 at 20:09 +0100, Reimar D?ffinger wrote:
> On Thu, Mar 13, 2008 at 08:06:29PM +0100, Reimar D?ffinger wrote:
> > Huh? It's a difference of pointers, so z is most likely to be correct, though
> > using just %d and casting to int might be more portable and good enough.
> 
> Oh, and really correct would be %td , but I fear that might be a gnuism,
> PRIdPTR seems like the most portable alternative to me without casting.

The difference of pointers has type ptrdiff_t. 't' is a standard C
printf modifier for ptrdiff_t. PRIdPTR is for intptr_t, not ptrdiff_t.





More information about the ffmpeg-devel mailing list