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