mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
htmlsubtitles: support <br> tag
Some .srt files use this tag. (An alternative implementation would be correctly ignoring unknown tags, and treating them as whitespace. libass can do automatic line wrapping.)
This commit is contained in:
parent
f1baafac71
commit
f605b56ad9
@ -167,6 +167,8 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
|
||||
}
|
||||
} else if (tagname[0] && !tagname[1] && strspn(tagname, "bisu") == 1) {
|
||||
av_bprintf(dst, "{\\%c%d}", tagname[0], !tag_close);
|
||||
} else if (!strcmp(tagname, "br")) {
|
||||
av_bprintf(dst, "\\N");
|
||||
} else {
|
||||
unknown = 1;
|
||||
snprintf(tmp, sizeof(tmp), "</%s>", tagname);
|
||||
|
Loading…
Reference in New Issue
Block a user