mirror of
https://github.com/aler9/gortsplib
synced 2025-10-25 00:00:30 +08:00
Fix SDP parsing for repeat time field with no offsets (#880)
Co-authored-by: Nicolas BRAINEZ <nicolas.brainez@ext.ec.europa.eu>
This commit is contained in:
@@ -393,7 +393,7 @@ func parseTimeUnits(value string) (int64, error) {
|
||||
|
||||
func (s *SessionDescription) unmarshalRepeatTimes(value string) error {
|
||||
fields := strings.Fields(value)
|
||||
if len(fields) < 3 {
|
||||
if len(fields) < 2 {
|
||||
return fmt.Errorf("%w `r=%v`", errSDPInvalidSyntax, value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user