> You can find alot occurences of this problem in WinCE world. The problem is
> the "GetSystemTime()" call, which should fill the SYSTEMTIME struct, but it
> does not, at least not the milliseconds field (which is always 0). The
> solution I used:
>
> int gettimeofday(struct timeval* tp, int*
> Thank you very much for your answer. Your words make sense concerning the
> calculation!
> There were two different (independent) problems:
> 1 the underlined line returns 0 on Freescale's I.MX53 ARM cpu, the reason:
> "fTimestampFrequency*tv.tv_usec" is too large for 32bit. As the datatype
we want to use live555 in one of our products on the WinCE platform and we have
some issues with timestamp calculation.
>From file liveMedia/RTPSink.cpp:
u_int32_t RTPSink::convertToRTPTimestamp(struct timeval tv) {
// Begin by converting from "struct timeval" units to RTP timestamp units:
u_i