Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdp: make parse_sdp_sessions() accept optional \r\n at begin
Instead of having to provide a mandatory \r\n at the begin of the SDP body that is going to be parsed, this is now optional. Thus the SDP can now start directly with the `v=` line. This commit also fixes two other issues: 1. the function might underflow if `v=` is found in the first two chars 2. if the SDP has some garbage at the begining, then it is valid, the previous function would have validated it
- Loading branch information
1 parent
b7b22d6
commit ab4cc76
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters