From 3e84c65cb8f6490e3548b7832867b8d93a327a44 Mon Sep 17 00:00:00 2001 From: Roger van Bommel Date: Mon, 29 Dec 2025 20:21:23 +0100 Subject: [PATCH] Correct null PID behaviour for DVB-S modulator --- plugins/channeltx/moddatv/datvmodsource.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/channeltx/moddatv/datvmodsource.cpp b/plugins/channeltx/moddatv/datvmodsource.cpp index 9549141e3..44e2e3126 100644 --- a/plugins/channeltx/moddatv/datvmodsource.cpp +++ b/plugins/channeltx/moddatv/datvmodsource.cpp @@ -377,12 +377,11 @@ void DATVModSource::modulateSample() else { // Insert null packet. PID=0x1fff - memset(m_mpegTS, 0, sizeof(m_mpegTS)); + memset(m_mpegTS, 0xFF, sizeof(m_mpegTS)); m_mpegTS[0] = 0x47; // Sync byte - m_mpegTS[1] = 0x01; - m_mpegTS[2] = 0xff; - m_mpegTS[3] = 0xff; - m_mpegTS[4] = 0x10; + m_mpegTS[1] = 0x1F; + m_mpegTS[2] = 0xFF; + m_mpegTS[3] = 0x10; if (tsFileReady) { m_frameCount++;