summaryrefslogtreecommitdiff
path: root/libavcodec/htmlsubtitles.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-07-26 19:56:28 +0200
committerClément Bœsch <u@pkh.me>2017-07-26 19:56:28 +0200
commit2ba20d799ad25650e8fb400e0d0a33782394accf (patch)
tree4a9b5911e69abb26e55e182315ff05d232e95207 /libavcodec/htmlsubtitles.c
parent1b00600319506a9bd81b114d2b374051dc1a29a6 (diff)
lavc/htmlsubtitles: simplify 1-char tags case insensitive test
Diffstat (limited to 'libavcodec/htmlsubtitles.c')
-rw-r--r--libavcodec/htmlsubtitles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c
index e6bac713c1..e1fb7bc3cf 100644
--- a/libavcodec/htmlsubtitles.c
+++ b/libavcodec/htmlsubtitles.c
@@ -165,7 +165,7 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
if (stack[sptr].param[i][0])
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);
} else if (!av_strcasecmp(tagname, "br")) {
av_bprintf(dst, "\\N");