wip
This commit is contained in:
parent
cd2dfcd91e
commit
def37f3c5a
1 changed files with 0 additions and 3 deletions
|
@ -672,8 +672,6 @@ function consolidate( $target, $segments ) {
|
||||||
if ( $total >= $nextDuration ) {
|
if ( $total >= $nextDuration ) {
|
||||||
$after = $total - $nextDuration;
|
$after = $total - $nextDuration;
|
||||||
$before = $nextDuration - $duration;
|
$before = $nextDuration - $duration;
|
||||||
echo "$before $after\n";
|
|
||||||
echo "($total $nextDuration)\n";
|
|
||||||
if ( $before < $after ) {
|
if ( $before < $after ) {
|
||||||
// Break segment early
|
// Break segment early
|
||||||
break;
|
break;
|
||||||
|
@ -693,7 +691,6 @@ function consolidate( $target, $segments ) {
|
||||||
];
|
];
|
||||||
$nextTarget += $target;
|
$nextTarget += $target;
|
||||||
$nextDuration = $nextTarget - $timestamp - $duration;
|
$nextDuration = $nextTarget - $timestamp - $duration;
|
||||||
echo "[$nextTarget, $nextDuration]\n";
|
|
||||||
|
|
||||||
if ( $i < $n ) {
|
if ( $i < $n ) {
|
||||||
$segment = $segments[$i];
|
$segment = $segments[$i];
|
||||||
|
|
Loading…
Reference in a new issue