Commit 2de9c5ed authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/avstring: fix hardcoded separator in av_match_list()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3c0b98dc
......@@ -409,13 +409,13 @@ int av_match_list(const char *name, const char *list, char separator)
for (p = name; p && *p; ) {
for (q = list; q && *q; ) {
int k;
for (k = 0; p[k] == q[k] || (p[k]*q[k] == 0 && p[k]+q[k] == ','); k++)
if (k && (!p[k] || p[k] == ','))
for (k = 0; p[k] == q[k] || (p[k]*q[k] == 0 && p[k]+q[k] == separator); k++)
if (k && (!p[k] || p[k] == separator))
return 1;
q = strchr(q, ',');
q = strchr(q, separator);
q += !!q;
}
p = strchr(p, ',');
p = strchr(p, separator);
p += !!p;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment