diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-03-03 11:17:50 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-03-07 15:16:36 +0200 |
commit | efa7f4202088c70caba11d7834641bc6eaf41830 (patch) | |
tree | 7ef0beba253b642affcc69f634f192fdc7c12428 /libavutil/avstring.c | |
parent | 12c5c1d3e3906e18a96ec380605d2f1504fc3d3b (diff) | |
download | ffmpeg-efa7f4202088c70caba11d7834641bc6eaf41830.tar.gz |
Use the avstring.h locale-independent character type functions
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c index 6ce0310c1a..973ba4357e 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -23,7 +23,6 @@ #include <stdint.h> #include <stdio.h> #include <string.h> -#include <ctype.h> #include "config.h" #include "common.h" @@ -43,7 +42,7 @@ int av_strstart(const char *str, const char *pfx, const char **ptr) int av_stristart(const char *str, const char *pfx, const char **ptr) { - while (*pfx && toupper((unsigned)*pfx) == toupper((unsigned)*str)) { + while (*pfx && av_toupper((unsigned)*pfx) == av_toupper((unsigned)*str)) { pfx++; str++; } |