Change so that capture_time_ms == 0 is considered invalid.
No transmission offset computed if capture_time_ms is less than or equal to zero. BUG= Review URL: https://webrtc-codereview.appspot.com/761004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2675 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
94771cb6a0
commit
715faaf5ce
@ -914,7 +914,10 @@ RTPSender::SendToNetwork(WebRtc_UWord8* buffer,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (capture_time_ms >= 0) {
|
||||
// |capture_time_ms| <= 0 is considered invalid.
|
||||
// TODO(holmer): This should be changed all over Video Engine so that negative
|
||||
// time is consider invalid, while 0 is considered a valid time.
|
||||
if (capture_time_ms > 0) {
|
||||
ModuleRTPUtility::RTPHeaderParser rtpParser(buffer, length);
|
||||
WebRtcRTPHeader rtp_header;
|
||||
rtpParser.Parse(rtp_header);
|
||||
|
Loading…
Reference in New Issue
Block a user