Skip to content

Commit

Permalink
fixed port parsing in rstpout
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Apr 15, 2024
1 parent 05ebaaf commit 22d7227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/out_rtsp.c
Expand Up @@ -493,7 +493,7 @@ static GF_Err rtspout_initialize(GF_Filter *filter)
u32 cplen = (u32) (sep-ctx->dst-7);
if (cplen>1023) cplen = 1023;
strncpy(szIP, ctx->dst+7, cplen);
szIP[1023] = 0;
szIP[MIN(cplen,1023)] = 0;
sep = strchr(szIP, ':');
if (sep) {
port = atoi(sep+1);
Expand Down

0 comments on commit 22d7227

Please sign in to comment.