aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorOneric <oneric@oneric.de>2024-02-19 22:42:24 +0100
committerStefano Sabatini <stefasab@gmail.com>2024-04-06 09:23:51 +0200
commit7b8b4cdd9654ead881bc61a0b62e1586b473f843 (patch)
treef19aee7e4a906d4c5456041346ca9f31b110c186 /libavcodec
parent6f13f5dd59675d76844fc798d90028ab442c2521 (diff)
downloadffmpeg-7b8b4cdd9654ead881bc61a0b62e1586b473f843.tar.gz
avcodec/webvttdec: honour bidi marks
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/webvttdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webvttdec.c b/libavcodec/webvttdec.c
index 690f00dc47..990d150f16 100644
--- a/libavcodec/webvttdec.c
+++ b/libavcodec/webvttdec.c
@@ -39,7 +39,7 @@ static const struct {
{"<u>", "{\\u1}"}, {"</u>", "{\\u0}"},
{"{", "\\{"}, {"}", "\\}"}, // escape to avoid ASS markup conflicts
{"&gt;", ">"}, {"&lt;", "<"},
- {"&lrm;", ""}, {"&rlm;", ""}, // FIXME: properly honor bidi marks
+ {"&lrm;", "\xe2\x80\x8e"}, {"&rlm;", "\xe2\x80\x8f"},
{"&amp;", "&"}, {"&nbsp;", "\\h"},
};