summaryrefslogtreecommitdiff
path: root/libavcodec/ass.c
diff options
context:
space:
mode:
authorOneric <oneric@oneric.de>2022-11-12 18:59:04 +0100
committerPaul B Mahol <onemda@gmail.com>2022-12-03 19:08:44 +0100
commitb6f5a7ce0c4d6d45e6c1013cabddeb99af541970 (patch)
tree631c90ca72f6fb563b50531fb8900b99c4f056a2 /libavcodec/ass.c
parent95115fcc184db6217ce01632a0fbdff3e253183f (diff)
downloadffmpeg-b6f5a7ce0c4d6d45e6c1013cabddeb99af541970.tar.gz
avcodec/ass: specify a permissive encoding
The Encoding field (and the \fe tag) allows to limit font selection to only those fonts declaring support for the specified codepage in their OS/2's table "Code Page Character Range" field. Particularly, Encoding=0 means only font's declaring support for "ANSI", or rather "Latin (Western European)", are allowed to be selected. Specifying Encoding=1 allows all fonts to be considered. We do not want to limit font selection, so specify Encoding=1. NB: at the time of writing libass only partially supports this field, thus hiding the issue in any libass-based renderer. A VSFilter-based DirectShow filter or XySubFilter will reveal the issue when a font not declaring support for latin characters is specified in a style.
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r--libavcodec/ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index d2ea4c62c3..5058dc8337 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -65,7 +65,7 @@ int ff_ass_subtitle_header_full(AVCodecContext *avctx,
"0,0," /* Spacing, Angle */
"%d,1,0," /* BorderStyle, Outline, Shadow */
"%d,10,10,10," /* Alignment, Margin[LRV] */
- "0\r\n" /* Encoding */
+ "1\r\n" /* Encoding */
"\r\n"
"[Events]\r\n"