Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
aes-standards
aes67
Commits
9555aa7a
Commit
9555aa7a
authored
Dec 27, 2021
by
phil
Browse files
sdp parse accepts trailing spaces on first line (v=0)
parent
1e64f6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/sdp.c
View file @
9555aa7a
...
...
@@ -1391,17 +1391,17 @@ u32_t aes67_sdp_fromstr(struct aes67_sdp *sdp, u8_t *str, u32_t len, void *user_
u32_t
pos
=
3
;
// abort if no line termination
if
(
!
IS_CRNL
(
str
[
pos
])){
// skip to \n
while
(
pos
<
len
&&
str
[
pos
]
!=
NL
){
pos
++
;
}
// sanity check not beyond given string
if
(
pos
>=
len
){
return
AES67_SDP_ERROR
;
}
// move position beyond newline
pos
++
;
// if only NL skip (ie 2 chars for newline CRNL)
if
(
IS_NL
(
str
[
pos
]))
{
pos
++
;
}
// reset
aes67_sdp_init
(
sdp
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment