From 160f08889f46e059f23ac016be3f3e2550ece0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 21 Nov 2024 13:37:02 +0200 Subject: [PATCH] mpegtslivesrc: Fix mismatch between internal / external time usage Previously the internal time was stored as base offset for calculating the external time from the PCR, which resulted in disconts being detected wrongly. Part-of: --- net/mpegtslive/src/mpegtslive/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mpegtslive/src/mpegtslive/imp.rs b/net/mpegtslive/src/mpegtslive/imp.rs index ea2ff5d4..e1dde021 100644 --- a/net/mpegtslive/src/mpegtslive/imp.rs +++ b/net/mpegtslive/src/mpegtslive/imp.rs @@ -460,7 +460,7 @@ impl State { ); new_pcr = MpegTsPcr::new(pcr); self.base_pcr = Some(new_pcr); - self.base_external = Some(observation_internal); + self.base_external = Some(base_external); self.discont_pending = true; } } else {