From af12b0b3f0375241fcbd38761a7408e0a0f10ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Wed, 17 Jan 2024 09:01:39 +0100 Subject: [PATCH] fix(DASH): Fix PERIOD_FLATTENING_FAILED on fastswitching streams (#6113) --- lib/util/periods.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/util/periods.js b/lib/util/periods.js index 80c4c6532c..b72a59f051 100644 --- a/lib/util/periods.js +++ b/lib/util/periods.js @@ -1034,6 +1034,10 @@ shaka.util.PeriodCombiner = class { continue; } + if (outputStream.fastSwitching != stream.fastSwitching) { + continue; + } + if (!best || isBetterMatch(outputStream, best, stream)) { best = stream; }