rtpaac: remove check on AU header

This commit is contained in:
aler9
2021-03-09 14:04:46 +01:00
parent 7be302bd03
commit 9bc33c7e6c
2 changed files with 299 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
package rtpaac
import (
"fmt"
"time"
"github.com/pion/rtp"
@@ -38,10 +37,6 @@ func (d *Decoder) Decode(byts []byte) (*AUAndTimestamp, error) {
d.initialTs = pkt.Timestamp
}
if pkt.Payload[0] != 0x00 || pkt.Payload[1] != 0x10 {
return nil, fmt.Errorf("invalid payload")
}
return &AUAndTimestamp{
AU: pkt.Payload[4:],
Timestamp: d.decodeTimestamp(pkt.Timestamp),