mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-28 10:01:36 +08:00
fix documentation (#4110)
This commit is contained in:
@@ -30,7 +30,7 @@ func (m *VideoExCodedFrames) unmarshal(raw *rawmessage.Message) error {
|
||||
switch m.FourCC {
|
||||
case FourCCAVC, FourCCHEVC:
|
||||
if len(raw.Body) < 8 {
|
||||
return fmt.Errorf("bnot enough bytes")
|
||||
return fmt.Errorf("not enough bytes")
|
||||
}
|
||||
m.PTSDelta = time.Duration(uint32(raw.Body[5])<<16|uint32(raw.Body[6])<<8|uint32(raw.Body[7])) * time.Millisecond
|
||||
m.Payload = raw.Body[8:]
|
||||
|
||||
Reference in New Issue
Block a user