From ee548d22142191a681860b8bbf91f961a2f062d4 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 4 Apr 2017 08:42:01 +0200 Subject: [PATCH] AM Demodulator: horizontal leap mode: use a fixed amortizing factor (1/2) to correct horizontal sync --- plugins/channelrx/demodatv/atvdemod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodatv/atvdemod.h b/plugins/channelrx/demodatv/atvdemod.h index 1f0c09afa..16183df92 100644 --- a/plugins/channelrx/demodatv/atvdemod.h +++ b/plugins/channelrx/demodatv/atvdemod.h @@ -490,7 +490,7 @@ private: if (m_objRunning.m_blnHSync && (m_intLineIndex == 0)) { //qDebug("HCorr: %d", m_intAvgColIndex); - m_intColIndex = m_intNumberSamplePerTop + m_intNumberSamplePerLine - m_intAvgColIndex; + m_intColIndex = m_intNumberSamplePerTop + (m_intNumberSamplePerLine - m_intAvgColIndex)/2; // amortizing factor 1/2 } else {