[Live-devel] RTP Timestamp doesn't change

Salick salick at videocells.com
Sun Apr 2 07:09:02 PDT 2006


Hello,

 

Although I increment fPresentationTime in my code, the timestamps in the RTP
packets are always the same.

How come? Should I override MultiFramedRTPSink::doSpecialFrameHandling()?

 

This is my code snippet from doGetNextFrame()

 

if (fPresentationTime.tv_sec == 0 && fPresentationTime.tv_usec == 0)

{

      // This is the first frame, so use the current time:

      //gettimeofday(&fPresentationTime, NULL); //can't be called on windows

            

      __time64_t ltime;

      _time64(&ltime);

 

      fPresentationTime.tv_sec = ltime;

      fPresentationTime.tv_usec = 0;

} 

else 

{

 

      fPresentationTime.tv_usec += (long) 200000;

 

      while (fPresentationTime.tv_usec >= 1000000) 

      {

            fPresentationTime.tv_usec -= 1000000;

            ++fPresentationTime.tv_sec;

      }

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060402/1eb2a156/attachment.html 


More information about the live-devel mailing list