diff options
author | Oneric <oneric@oneric.stub> | 2020-07-10 01:56:52 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2020-07-11 20:02:50 +0300 |
commit | 9f35fa95ab974c3ca5f0295b8d9094e5dffef285 (patch) | |
tree | e15afb2a3493c8548b163531c71a0775aad50419 | |
parent | 75b1e54634a1d7e0c3204b09e27a4f887a03e4f4 (diff) | |
download | libass-9f35fa95ab974c3ca5f0295b8d9094e5dffef285.tar.bz2 libass-9f35fa95ab974c3ca5f0295b8d9094e5dffef285.tar.xz |
Ignore leading space of lines in parsing
This more forgiving behaviour resembles VSFilter's more closely and will
fix #117 ; trailing whitespace should not be an issue.
Though as pointed out in #19 VSFilter is still far more lenient.
-rw-r--r-- | libass/ass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass.c b/libass/ass.c index c7d5ea2..b5ebad6 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -940,6 +940,7 @@ static int process_fonts_line(ASS_Track *track, char *str) */ static int process_line(ASS_Track *track, char *str) { + skip_spaces(&str); if (!ass_strncasecmp(str, "[Script Info]", 13)) { track->parser_priv->state = PST_INFO; } else if (!ass_strncasecmp(str, "[V4 Styles]", 11)) { |