From a2be4cf878b1aae388460403846947b8c09c67a6 Mon Sep 17 00:00:00 2001 From: nareix Date: Thu, 23 Jun 2016 07:08:26 +0800 Subject: [PATCH] fix default timescale --- client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index 5f39b05..d09f62b 100644 --- a/client.go +++ b/client.go @@ -1057,11 +1057,8 @@ func (self *Client) handleBlock(block []byte) (pkt av.Packet, ok bool, err error stream.timestamp -= stream.firsttimestamp if timeScale == 0 { - /* - https://tools.ietf.org/html/rfc5391 - The RTP timestamp clock frequency is the same as the default sampling frequency: 16 kHz. - */ - timeScale = 16000 + // https://tools.ietf.org/html/rfc5391 + timeScale = 8000 } ok = true