[Live-devel] incorrect uSecondsToGo value

HUNT_Anders Chen anders_chen at huntelec.com.tw
Mon Nov 29 20:12:47 PST 2010


Dear all,

    At line 391 of MultiFramedRTPSink.cpp :

        int64_t uSecondsToGo = (fNextSendTime.tv_sec - timeNow.tv_sec)*1000000 + (fNextSendTime.tv_usec - timeNow.tv_usec);

    In some situations, (fNextSendTime.tv_sec - timeNow.tv_sec)*1000000  will become a huge, but positive value.
    ex. 
            timeNow.tv_sec = 1291086790;
            fNextSendTime.tv_sec = 1291084611;

            (fNextSendTime.tv_sec - timeNow.tv_sec) = -2179;
            (fNextSendTime.tv_sec - timeNow.tv_sec)*1000000 = 2115967296;

    And I think the same problem will be happened at line 86 of BasicUDPSink.cpp.


Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20101130/0ab40c0c/attachment.html>


More information about the live-devel mailing list