lavc/htmlsubtitles: simplify 1-char tags case insensitive test
This commit is contained in:
@@ -165,7 +165,7 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
|
|||||||
if (stack[sptr].param[i][0])
|
if (stack[sptr].param[i][0])
|
||||||
av_bprintf(dst, "%s", stack[sptr].param[i]);
|
av_bprintf(dst, "%s", stack[sptr].param[i]);
|
||||||
}
|
}
|
||||||
} else if (tagname[0] && !tagname[1] && av_stristr("bisu", tagname)) {
|
} else if (tagname[0] && !tagname[1] && strchr("bisu", av_tolower(tagname[0]))) {
|
||||||
av_bprintf(dst, "{\\%c%d}", (char)av_tolower(tagname[0]), !tag_close);
|
av_bprintf(dst, "{\\%c%d}", (char)av_tolower(tagname[0]), !tag_close);
|
||||||
} else if (!av_strcasecmp(tagname, "br")) {
|
} else if (!av_strcasecmp(tagname, "br")) {
|
||||||
av_bprintf(dst, "\\N");
|
av_bprintf(dst, "\\N");
|
||||||
|
Reference in New Issue
Block a user