[Ffmpeg-devel] how to handel pts

Dave Dodge dododge
Fri Jul 15 23:30:32 CEST 2005

On Fri, Jul 15, 2005 at 10:40:54AM -0700, Bill May wrote:
> Michael Niedermayer wrote:
> >>printf("pts : %I64u\n",packet.pts);
> It's the windows equivalent of %llu (which needs to be %lu on 64 bit
> machines).
> In mpeg4ip, we've implemented this by using defines for the strings,
> so that the above becomes:
> printf("pts: "U64"\n", packet.pts);

packet.pts is an int64_t, so C99 provides a standard definition
for doing it:

  #include <inttypes.h>
  printf("pts: %" PRIi64 "\n", packet.pts);

I don't know if the Windows headers include this definition, though.

                                                  -Dave Dodge

More information about the ffmpeg-devel mailing list