From 87cd4af7a2171000bb190c274633f28cf35e2223 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 12 Apr 2025 15:17:24 +0200 Subject: Report zero- or negative-length subtitles as an error. This is distinct from the Bv2.1 warning about subtitles being shorter than 15 frames. Also fix an assertion failure when negative-length subtitles are seen. --- src/verify.cc | 37 ++++++++++++++++++++++++++----------- src/verify.h | 4 +++- 2 files changed, 29 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 4be23861..b7ffeb0d 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -892,6 +892,7 @@ verify_text_details ( /* end of last subtitle (in editable units) */ optional last_out; auto too_short = false; + auto too_short_bv21 = false; auto too_close = false; auto too_early = false; auto reel_overlap = false; @@ -902,7 +903,7 @@ verify_text_details ( std::function, optional