avcodec/htmlsubtitles: Avoid locale dependant isdigit()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Aug 2019 19:56:35 +0000 (21:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Sep 2019 20:43:14 +0000 (22:43 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/htmlsubtitles.c

index d9221ba..8ce66e0 100644 (file)
@@ -55,7 +55,7 @@ static int scanbraces(const char* in) {
     if (strncmp(in, "{\\an", 4) != 0) {
         return 0;
     }
     if (strncmp(in, "{\\an", 4) != 0) {
         return 0;
     }
-    if (!isdigit(in[4])) {
+    if (!av_isdigit(in[4])) {
         return 0;
     }
     if (in[5] != '}') {
         return 0;
     }
     if (in[5] != '}') {