fix default timescale

This commit is contained in:
nareix 2016-06-23 07:08:26 +08:00
parent 06583889af
commit a2be4cf878

View File

@ -1057,11 +1057,8 @@ func (self *Client) handleBlock(block []byte) (pkt av.Packet, ok bool, err error
stream.timestamp -= stream.firsttimestamp stream.timestamp -= stream.firsttimestamp
if timeScale == 0 { if timeScale == 0 {
/* // https://tools.ietf.org/html/rfc5391
https://tools.ietf.org/html/rfc5391 timeScale = 8000
The RTP timestamp clock frequency is the same as the default sampling frequency: 16 kHz.
*/
timeScale = 16000
} }
ok = true ok = true