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

Diego Biurrun diego
Fri Mar 14 14:19:59 CET 2008


On Thu, Mar 13, 2008 at 09:23:46PM +0200, Uoti Urpala wrote:
> 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.

I applied the t change.

Diego




More information about the ffmpeg-devel mailing list