summaryrefslogtreecommitdiff
path: root/libavutil/parseutils.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-03-03 11:17:50 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-03-03 21:44:10 +0100
commit88d55b827d5ecac94c9ec399d219cc02b46ed694 (patch)
tree6aa644bd0328757eae325c5ba61df169d75cfa6e /libavutil/parseutils.c
parent2cffe38df3df8ee1ec0fea0b2a2d3fed6e75da0d (diff)
downloadffmpeg-88d55b827d5ecac94c9ec399d219cc02b46ed694.tar.gz
Remove incorrect use of ctype.h functions.
As far as I can tell the code should not change behaviour depending on locale in any of these places. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil/parseutils.c')
-rw-r--r--libavutil/parseutils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index c67f971792..494801e2de 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -426,7 +426,7 @@ static int date_get_num(const char **pp,
val = 0;
for(i = 0; i < len_max; i++) {
c = *p;
- if (!isdigit(c))
+ if (!av_isdigit(c))
break;
val = (val * 10) + c - '0';
p++;
@@ -446,8 +446,8 @@ char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
for(;;) {
/* consume time string until a non whitespace char is found */
- while (isspace(*fmt)) {
- while (isspace(*p))
+ while (av_isspace(*fmt)) {
+ while (av_isspace(*p))
p++;
fmt++;
}
@@ -611,11 +611,11 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
int n;
q++;
for (n = 100000; n >= 1; n /= 10, q++) {
- if (!isdigit(*q))
+ if (!av_isdigit(*q))
break;
microseconds += n * (*q - '0');
}
- while (isdigit(*q))
+ while (av_isdigit(*q))
q++;
}