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

Submitted by Michael Niedermayer on Aug. 28, 2019, 9:17 p.m.

Details

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.
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.
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

[...]

Patch hide | download patch | download mbox

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