[FFmpeg-cvslog] avutil/avstring: fix hardcoded separator in av_match_list()

Michael Niedermayer git at videolan.org
Thu Oct 23 13:31:24 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 23 12:22:21 2014 +0200| [2de9c5ed98e4929541cbc6bcede4877dbbf81bf4] | committer: Michael Niedermayer

avutil/avstring: fix hardcoded separator in av_match_list()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2de9c5ed98e4929541cbc6bcede4877dbbf81bf4
---

 libavutil/avstring.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 413e140..25c65b4 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;
     }
 



More information about the ffmpeg-cvslog mailing list