$end = $3;
$duration = $end - $start;
if($duration < 0) { die "-E- Unexpected negative duration detected for chapter $chapter\n"; }
$end = $3;
$duration = $end - $start;
if($duration < 0) { die "-E- Unexpected negative duration detected for chapter $chapter\n"; }