[Ffmpeg-devel] how to handel pts

Bill May wmay
Fri Jul 15 19:40:54 CEST 2005



Michael Niedermayer wrote:
> Hi
> 
> On Friday 15 July 2005 12:44, Patrick Fischer wrote:
> 
>>After lots of problems i can read the pts from an mpeg-ts
>>but how to handel the 64bit?
>>
>>while(av_read_frame(pFormatCtx, &packet)>=0) {
>>if(packet.stream_index==videoStream) {
>>avcodec_decode_video(pCodecCtx, pFrame, &frameFinished,
>>packet.data, packet.size);
>>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);

Bill May





More information about the ffmpeg-devel mailing list