Skip to content

Commit

Permalink
fix:get connection address from SDP package (#325)
Browse files Browse the repository at this point in the history
Co-authored-by: sdc <[email protected]>
  • Loading branch information
shizhe0123 and sdc committed Jan 12, 2024
1 parent ece5a96 commit 0d60f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librtsp/source/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ int sdp_connection_get_address(struct sdp_t* sdp, char* ip, int bytes)
p = sdp->c.address;
while(*p && '/' != *p && bytes > 1)
{
*ip++ = *p;
*ip++ = *p++;
--bytes;
}

Expand Down Expand Up @@ -1615,7 +1615,7 @@ int sdp_media_get_connection_address(struct sdp_t* sdp, int media, char* ip, int
p = conn->address;
while(*p && '/' != *p && bytes > 1)
{
*ip++ = *p;
*ip++ = *p++;
--bytes;
}

Expand Down

0 comments on commit 0d60f4d

Please sign in to comment.