aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-23 12:22:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-23 12:22:21 +0200
commit2de9c5ed98e4929541cbc6bcede4877dbbf81bf4 (patch)
treedd284caf682d792646a7c240794b1b9387e0c7d1
parent3c0b98dced394da30d96b94b61faa07574d97e33 (diff)
downloadffmpeg-2de9c5ed98e4929541cbc6bcede4877dbbf81bf4.tar.gz
avutil/avstring: fix hardcoded separator in av_match_list()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/avstring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 413e140b57..25c65b4238 100644
--- a/libavutil/avstring.c
+++ b/libavutil/avstring.c
@@ -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;
}