diff mbox

[FFmpeg-devel,2/2] avcodec/htmlsubtitles: Avoid locale dependant isdigit()

Message ID 20190828211720.19338-2-michael@niedermayer.cc
State Accepted
Commit b94cf549e2d9e456d77f8539baca0fffa805ba69
Headers show

Commit Message

Michael Niedermayer Aug. 28, 2019, 9:17 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/htmlsubtitles.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Sept. 11, 2019, 8:57 p.m. UTC | #1
On Wed, Aug 28, 2019 at 11:17:20PM +0200, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavcodec/htmlsubtitles.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

[...]
diff mbox

Patch

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] != '}') {