[FFmpeg-cvslog] avcodec/htmlsubtitles: Avoid locale dependant isdigit()

Michael Niedermayer git at videolan.org
Thu Sep 12 01:26:56 EEST 2019


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Aug 28 21:56:35 2019 +0200| [b94cf549e2d9e456d77f8539baca0fffa805ba69] | committer: Michael Niedermayer

avcodec/htmlsubtitles: Avoid locale dependant isdigit()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/htmlsubtitles.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c
index d9221ba16b..8ce66e0b27 100644
--- a/libavcodec/htmlsubtitles.c
+++ b/libavcodec/htmlsubtitles.c
@@ -55,7 +55,7 @@ static int scanbraces(const char* in) {
     if (strncmp(in, "{\\an", 4) != 0) {
         return 0;
     }
-    if (!isdigit(in[4])) {
+    if (!av_isdigit(in[4])) {
         return 0;
     }
     if (in[5] != '}') {



More information about the ffmpeg-cvslog mailing list