This commit is contained in:
Brooke Vibber 2023-03-07 15:18:00 -08:00
parent cd2dfcd91e
commit def37f3c5a

View file

@ -672,8 +672,6 @@ function consolidate( $target, $segments ) {
if ( $total >= $nextDuration ) {
$after = $total - $nextDuration;
$before = $nextDuration - $duration;
echo "$before $after\n";
echo "($total $nextDuration)\n";
if ( $before < $after ) {
// Break segment early
break;
@ -693,7 +691,6 @@ function consolidate( $target, $segments ) {
];
$nextTarget += $target;
$nextDuration = $nextTarget - $timestamp - $duration;
echo "[$nextTarget, $nextDuration]\n";
if ( $i < $n ) {
$segment = $segments[$i];