mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 03:22:58 +08:00
rtpaac: remove check on AU header
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user