Merge pull request #31 from Scott-Chen/master
fix rtsp AAC division error
This commit is contained in:
commit
e084649a37
@ -736,7 +736,7 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
|
|||||||
if _, _, _, _, err := aacparser.ParseADTSHeader(frame); err == nil {
|
if _, _, _, _, err := aacparser.ParseADTSHeader(frame); err == nil {
|
||||||
frame = frame[7:]
|
frame = frame[7:]
|
||||||
}
|
}
|
||||||
duration = time.Duration((float32(1024)/float32(client.AudioTimeScale))*1000) * time.Millisecond
|
duration = time.Duration((float32(1024)/float32(client.AudioTimeScale))*1000*1000*1000) * time.Nanosecond
|
||||||
client.AudioTimeLine += duration
|
client.AudioTimeLine += duration
|
||||||
retmap = append(retmap, &av.Packet{
|
retmap = append(retmap, &av.Packet{
|
||||||
Data: frame,
|
Data: frame,
|
||||||
|
Loading…
Reference in New Issue
Block a user