From a3cdad85ed07c8860698025e851fae53d3b38c9b Mon Sep 17 00:00:00 2001 From: odrling Date: Mon, 12 Aug 2024 22:43:27 +0200 Subject: [PATCH] fix lyrics with \pos tags whoops --- libdakara_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdakara_check.c b/libdakara_check.c index 54ded92..4d49463 100644 --- a/libdakara_check.c +++ b/libdakara_check.c @@ -294,7 +294,7 @@ void dakara_check_subtitle_events(ASS_Track *track, dakara_check_sub_results *re tags = false; break; case '\\': - if (line[read_head + 1] == 'p') { + if (line[read_head + 1] == 'p' && line[read_head] <= '9' && line[read_head] >= 0) { // \p0, disables \pn is valid and enables drawing mode drawing = line[read_head + 2] != '0'; }