Update test tool RTPchange
Update file format to match recent changes in RTPanalyze. Review URL: http://webrtc-codereview.appspot.com/45003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@102 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
5e1316f9bb
commit
40eac91f40
@ -59,14 +59,16 @@ int main(int argc, char* argv[])
|
|||||||
fgets(tempStr, 100, statFile);
|
fgets(tempStr, 100, statFile);
|
||||||
|
|
||||||
// define map
|
// define map
|
||||||
std::map<std::pair<WebRtc_UWord16, WebRtc_UWord32>, WebRtc_Word32> packetStats;
|
std::map<std::pair<WebRtc_UWord16, WebRtc_UWord32>, WebRtc_UWord32>
|
||||||
|
packetStats;
|
||||||
WebRtc_UWord16 seqNo;
|
WebRtc_UWord16 seqNo;
|
||||||
WebRtc_UWord32 ts;
|
WebRtc_UWord32 ts;
|
||||||
WebRtc_Word32 sendTime;
|
WebRtc_UWord32 sendTime;
|
||||||
|
|
||||||
while(fscanf(statFile, "%hu %lu %ld\n", &seqNo, &ts, &sendTime) == 3)
|
while(fscanf(statFile, "%u %u %u %*i\n", &seqNo, &ts, &sendTime) == 3)
|
||||||
{
|
{
|
||||||
std::pair<WebRtc_UWord16, WebRtc_UWord32> tempPair = std::pair<WebRtc_UWord16, WebRtc_UWord32>(seqNo, ts);
|
std::pair<WebRtc_UWord16, WebRtc_UWord32> tempPair =
|
||||||
|
std::pair<WebRtc_UWord16, WebRtc_UWord32>(seqNo, ts);
|
||||||
|
|
||||||
packetStats[tempPair] = sendTime;
|
packetStats[tempPair] = sendTime;
|
||||||
}
|
}
|
||||||
@ -97,7 +99,7 @@ int main(int argc, char* argv[])
|
|||||||
std::pair<WebRtc_UWord16, WebRtc_UWord32> tempPair =
|
std::pair<WebRtc_UWord16, WebRtc_UWord32> tempPair =
|
||||||
std::pair<WebRtc_UWord16, WebRtc_UWord32>(newPacket->sequenceNumber(), newPacket->timeStamp());
|
std::pair<WebRtc_UWord16, WebRtc_UWord32>(newPacket->sequenceNumber(), newPacket->timeStamp());
|
||||||
|
|
||||||
WebRtc_Word32 newSendTime = packetStats[tempPair];
|
WebRtc_UWord32 newSendTime = packetStats[tempPair];
|
||||||
if (newSendTime >= 0)
|
if (newSendTime >= 0)
|
||||||
{
|
{
|
||||||
newPacket->setTime(newSendTime); // set new send time
|
newPacket->setTime(newSendTime); // set new send time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user