mirror of
https://github.com/aler9/gortsplib
synced 2025-10-16 20:20:40 +08:00
support cameras that doesn't provide indexlength/indexdeltalength
This commit is contained in:
@@ -145,6 +145,14 @@ func newTrackAACFromMediaDescription(
|
||||
return nil, fmt.Errorf("sizelength is missing (%v)", v)
|
||||
}
|
||||
|
||||
if track.indexLength == 0 && track.sizeLength == 13 {
|
||||
track.indexLength = 3
|
||||
}
|
||||
|
||||
if track.indexDeltaLength == 0 && track.sizeLength == 13 {
|
||||
track.indexDeltaLength = 3
|
||||
}
|
||||
|
||||
return track, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user