summaryrefslogtreecommitdiffstats
path: root/libass/ass_priv.h
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2022-10-04 01:16:30 +0200
committerOneric <oneric@oneric.stub>2022-10-14 20:21:09 +0200
commit75a3dbac9bd41842a4d00b0d42c9513e2c8aec67 (patch)
treeb34f583444de02d4d0abf28f63d6b5c6b95049c4 /libass/ass_priv.h
parent82c654056acfc240ef1400c2bdc67489be0d98fd (diff)
downloadlibass-75a3dbac9bd41842a4d00b0d42c9513e2c8aec67.tar.bz2
libass-75a3dbac9bd41842a4d00b0d42c9513e2c8aec67.tar.xz
Parse ScriptType header
VSFilter uses it for Dialogue lines and Style lines not preceeded by a styles section header. libass requires section headers to parse styles, but this still helps for files without a Styles section (placed before the Events section) and also makes our legacy-FFmpeg detection more accurate. In fact, VSFilter takes _only_ the ScriptType header into account for Dialogue lines and keeps a separate version for styles which is also affected by style section headers. This dual versioning is not implemented by this commit and the lack of any issue reports about it suggests such files may not exist in practice. If however it turned out they do, an additional version variable can be added to parser_priv and we need to decide which one to present to API users.
Diffstat (limited to 'libass/ass_priv.h')
-rw-r--r--libass/ass_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_priv.h b/libass/ass_priv.h
index 43a89c8..8c9d3cf 100644
--- a/libass/ass_priv.h
+++ b/libass/ass_priv.h
@@ -41,8 +41,9 @@ typedef enum {
SINFO_SCALEDBORDER = 1 << 5,
SINFO_COLOURMATRIX = 1 << 6,
SINFO_KERNING = 1 << 7,
+ SINFO_SCRIPTTYPE = 1 << 8,
// for legacy detection
- GENBY_FFMPEG = 1 << 8
+ GENBY_FFMPEG = 1 << 14
// max 32 enumerators
} ScriptInfo;