From c259338463b394e61504ff0e232b0ba102c1eda2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 10 Aug 2021 02:10:49 +0200 Subject: Add verify check for empty nodes in timed text. --- src/verify.cc | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index c8307aa5..e7a55d4c 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -778,6 +778,7 @@ verify_closed_caption_asset ( } +/** Check the timing of the individual subtitles and make sure there are no empty nodes */ static void verify_text_details ( @@ -795,11 +796,12 @@ verify_text_details ( auto too_close = false; auto too_early = false; auto reel_overlap = false; + auto empty_text = false; /* current reel start time (in editable units) */ int64_t reel_offset = 0; std::function, optional