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>
This commit is contained in:
Reimar Döffinger
2013-03-03 11:17:50 +01:00
committed by Martin Storsjö
parent 12c5c1d3e3
commit efa7f42020
23 changed files with 47 additions and 52 deletions

View File

@@ -385,7 +385,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++;
@@ -591,7 +591,7 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
int val, n;
q++;
for (val = 0, n = 100000; n >= 1; n /= 10, q++) {
if (!isdigit(*q))
if (!av_isdigit(*q))
break;
val += n * (*q - '0');
}