Rewrite HLS segmentation algo AGAIN, add a bunch of HLS segmentation tests, add VideoEncoder/AudioEncoder timing refinement logic, fix HLS output spec violations

This commit is contained in:
Vanilagy
2026-03-26 16:23:07 +01:00
parent 157582498f
commit 5bc1a31b8e
10 changed files with 1235 additions and 135 deletions
+8
View File
@@ -791,6 +791,14 @@ export const joinPaths = (basePath: string, relativePath: string) => {
return relativePath;
}
// Strip query parameters from URL base paths so their contents don't mess up the join
if (basePath.includes('://')) {
const queryIndex = basePath.indexOf('?');
if (queryIndex !== -1) {
basePath = basePath.slice(0, queryIndex);
}
}
let result: string;
if (relativePath.startsWith('/')) {