Adding missing timestamp calculation to RTPencode.

Review URL: https://webrtc-codereview.appspot.com/392002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1641 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tina.legrand@webrtc.org 2012-02-08 13:20:36 +00:00
parent eaaccb7626
commit 13ac430bef

View File

@ -756,8 +756,10 @@ int main(int argc, char* argv[])
stereoDeInterleave(org_data, len * numChannels);
}
if (payloadType==NETEQ_CODEC_G722_PT)
timestamp+=len>>1;
if (payloadType==NETEQ_CODEC_G722_PT)
timestamp+=len>>1;
else
timestamp+=len;
sendtime += (double) len/(fs/1000);
}