History

avutil/avstring: fix hardcoded separator in av_match_list()

Michael Niedermayer committed 12 years ago

Commit 2de9c5e1 parent 3c0b98d1 file · +4 −4Browse files

Showing the changes to libavutil/avstring.c (1 of 1 file). Show all

Unified · Split

libavutil/avstring.c+4−4
@@ -409,13 +409,13 @@ int av_match_list(const char *name, const char *list, char separator) · 408 unmodified lines
409409 for (p = name; p && *p; ) {
410410 for (q = list; q && *q; ) {
411411 int k;
412− for (k = 0; p[k] == q[k] || (p[k]*q[k] == 0 && p[k]+q[k] == ','); k++)
413− if (k && (!p[k] || p[k] == ','))
412+ for (k = 0; p[k] == q[k] || (p[k]*q[k] == 0 && p[k]+q[k] == separator); k++)
413+ if (k && (!p[k] || p[k] == separator))
414414 return 1;
415− q = strchr(q, ',');
415+ q = strchr(q, separator);
416416 q += !!q;
417417 }
418− p = strchr(p, ',');
418+ p = strchr(p, separator);
419419 p += !!p;
420420 }
421421

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t