MORE CODE REVIEW

This commit is contained in:
Vanilagy
2026-04-16 18:27:51 +02:00
parent b85ecd3109
commit 95e9dc5210
8 changed files with 72 additions and 93 deletions
+3 -1
View File
@@ -27,6 +27,7 @@ import {
TAG_PROGRAM_DATE_TIME,
TAG_TARGETDURATION,
} from './hls-misc';
import { HlsInputFormat } from '../input-format';
const IV_STRING_REGEX = /^0[xX][0-9a-fA-F]+$/;
@@ -603,7 +604,8 @@ export class HlsSegmentedInput extends SegmentedInput {
return ref!;
},
),
formats: this.input._formats,
// Do not allow recursive HLS. Cool on paper, but allows for nasty infinite-depth request trees.
formats: this.input._formats.filter(x => !(x instanceof HlsInputFormat)),
initInput: initInput ?? undefined,
});