From 566afb4ac8729843b8e557005637cc343e54b9d6 Mon Sep 17 00:00:00 2001 From: Hendrik Wendler Date: Fri, 2 Feb 2024 18:26:06 +0000 Subject: [PATCH] mxw: avoid assert --- srtparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtparser.h b/srtparser.h index 3a94495..6a1e448 100644 --- a/srtparser.h +++ b/srtparser.h @@ -550,7 +550,7 @@ inline void SubtitleItem::extractInfo(bool keepHTML, bool doNotIgnoreNonDialogue unique_copy (output.begin(), output.end(), std::back_insert_iterator(_justDialogue), [](char a,char b) { - return isspace(a) && isspace(b); + return a>0 && b>0 && isspace(a) && isspace(b); }); // trimming whitespaces