Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Phencys committed Jul 5, 2024
1 parent c29b38b commit 07dfefe
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
10 changes: 7 additions & 3 deletions DASH/LowLatency/impl/validate9X44.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
$segmentProfiles = $representation['segmentProfiles'];
}

$isSegmentStarts = $infoFileAdapt[$representationId]['isSegmentStart'];
$presStarts = $infoFileAdapt[$representationId]['PresStart'];
$presEnds = $infoFileAdapt[$representationId]['NextPresStart'];
$isSegmentStarts = $infoFileAdaptation[$representationId]['isSegmentStart'];
$presStarts = $infoFileAdaptation[$representationId]['PresStart'];
$presEnds = $infoFileAdaptation[$representationId]['NextPresStart'];

if (!$isSegmentStarts){
continue;
}

$segmentIndexes = array_keys($isSegmentStarts, '1');
$segmentCount = sizeof($segmentIndexes);
Expand Down
7 changes: 4 additions & 3 deletions DASH/LowLatency/impl/validate9X45.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
$chunkedAdaptationPoints[$representationId] = 3;

// Bullet 3
$isSegmentStarts = $infoFileAdapt[$representationId]['isSegmentStart'];
$presStarts = $infoFileAdapt[$representationId]['PresStart'];
$presEnds = $infoFileAdapt[$representationId]['NextPresStart'];
$isSegmentStarts = $infoFileAdaptation[$representationId]['isSegmentStart'];
$presStarts = $infoFileAdaptation[$representationId]['PresStart'];
$presEnds = $infoFileAdaptation[$representationId]['NextPresStart'];
if (!$isSegmentStarts){continue;}
$segmentIndexes = array_keys($isSegmentStarts, '1');
foreach ($segmentIndexes as $segmentIndexId => $segmentIndex) {
$presStart = $presStarts[$segmentIndex];
Expand Down
8 changes: 5 additions & 3 deletions DASH/LowLatency/impl/validateSegmentTimeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

global $mpdHandler, $period_timing_info;

$isSegmentStarts = $infoFileAdapt[$representation_id]['isSegmentStart'];
$presentationStarts = $infoFileAdapt[$representation_id]['PresStart'];
$presentationEnds = $infoFileAdapt[$representation_id]['NextPresStart'];
$isSegmentStarts = $infoFileAdaptation[$representation_id]['isSegmentStart'];
$presentationStarts = $infoFileAdaptation[$representation_id]['PresStart'];
$presentationEnds = $infoFileAdaptation[$representation_id]['NextPresStart'];

if (!$isSegmentStarts){return;}

$segmentIndexes = array_keys($isSegmentStarts, '1');
$segmentCount = sizeof($segmentIndexes);
Expand Down
4 changes: 3 additions & 1 deletion Utils/moduleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public function merge($l)
if ($hook == 'verdict') {
continue;
}
$hookValues['verdict'] = $this->selectVerdict($hookValues['verdict']);
if (gettype($hookValues) == "array"){
$hookValues['verdict'] = $this->selectVerdict($hookValues['verdict']);
}
}
}
}
Expand Down

0 comments on commit 07dfefe

Please sign in to comment.