Revision: 34791
http://sourceforge.net/p/opalvoip/code/34791
Author: rjongbloed
Date: 2016-04-23 13:12:10 +0000 (Sat, 23 Apr 2016)
Log Message:
-----------
Applied patch to fix divide by zero error in media stream with some media types, thanks Harald Karner
Modified Paths:
--------------
opal/branches/v3_16/src/rtp/rtp_stream.cxx
Modified: opal/branches/v3_16/src/rtp/rtp_stream.cxx
===================================================================
--- opal/branches/v3_16/src/rtp/rtp_stream.cxx 2016-04-23 13:07:25 UTC (rev 34790)
+++ opal/branches/v3_16/src/rtp/rtp_stream.cxx 2016-04-23 13:12:10 UTC (rev 34791)
@@ -320,7 +320,7 @@
RTP_Timestamp packetTime = m_jitterBuffer->GetPacketTime();
if (packetTime > 0)
timestamp += packetTime;
- else
+ else if (m_frameTime > 0)
timestamp += ((20*GetMediaFormat().GetTimeUnits() + m_frameTime - 1)/m_frameTime) * m_frameTime;
packet.SetTimestamp(timestamp);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|