avcodec/htmlsubtitles: Avoid locale dependant isdigit()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b94cf549e2d9e456d77f8539baca0fffa805ba69) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
38fde9e95f
commit
bc09450e29
@ -55,7 +55,7 @@ static int scanbraces(const char* in) {
|
|||||||
if (strncmp(in, "{\\an", 4) != 0) {
|
if (strncmp(in, "{\\an", 4) != 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!isdigit(in[4])) {
|
if (!av_isdigit(in[4])) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (in[5] != '}') {
|
if (in[5] != '}') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user