Skip to content

Commit

Permalink
fixed bug introduced by 0e6bd1c
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Jul 31, 2020
1 parent 8334696 commit b4b9444
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/filter_core/filter.c
Expand Up @@ -1131,17 +1131,18 @@ static void filter_parse_dyn_args(GF_Filter *filter, const char *args, GF_Filter
if (sep2 || sep3 || sep) {
char szPort[20];
u32 port = 0;
if (sep2) sep2[0] = 0;
if (sep2) {
sep2[0] = 0;
if (sep3) sep3[0] = 0;
}
else if (sep3) sep3[0] = 0;
if (sscanf(sep+1, "%d", &port)!=1) {
port = 0;
if (sscanf(sep+1, "%d", &port)==1) {
snprintf(szPort, 20, "%d", port);
if (strcmp(sep+1, szPort))
port = 0;
}
snprintf(szPort, 20, "%d", port);
if (strcmp(sep+1, szPort))
port = 0;

if (sep2) sep2[0] = ':';
else if (sep3) sep3[0] = '/';
if (sep3) sep3[0] = '/';

if (port) sep = sep2;
}
Expand Down

0 comments on commit b4b9444

Please sign in to comment.