diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-12 15:17:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-12 22:34:36 +0200 |
| commit | 87cd4af7a2171000bb190c274633f28cf35e2223 (patch) | |
| tree | b45cfaf36e83755d850eaaab3f9e18ebb1f2e486 /src/verify.h | |
| parent | 05adc13a5eef7c0fe165d062c0e40ad558a083d0 (diff) | |
Report zero- or negative-length subtitles as an error.v1.10.19
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.
Diffstat (limited to 'src/verify.h')
| -rw-r--r-- | src/verify.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/verify.h b/src/verify.h index 8a75dfa3..6499f815 100644 --- a/src/verify.h +++ b/src/verify.h @@ -238,8 +238,10 @@ public: INVALID_SUBTITLE_START_TIME, /** The first subtitle or closed caption happens before 4s into the first reel [Bv2.1_7.2.4] */ INVALID_SUBTITLE_FIRST_TEXT_TIME, - /** At least one subtitle is less than the minimum of 15 frames suggested by [Bv2.1_7.2.5] */ + /** At least one subtitle has a zero or negative duration */ INVALID_SUBTITLE_DURATION, + /** At least one subtitle is less than the minimum of 15 frames suggested by [Bv2.1_7.2.5] */ + INVALID_SUBTITLE_DURATION_BV21, /** At least one pair of subtitles are separated by less than the the minimum of 2 frames suggested by [Bv2.1_7.2.5] */ INVALID_SUBTITLE_SPACING, /** A subtitle lasts for longer than the reel which contains it */ |
