From cf5f960dd10e46ef1e1252f9c1bdab8e84643c84 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 30 Aug 2016 17:15:02 +0100 Subject: [PATCH] Fix EMB calculation. --- DMREMB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DMREMB.cpp b/DMREMB.cpp index cb6952e..fae4bab 100644 --- a/DMREMB.cpp +++ b/DMREMB.cpp @@ -36,7 +36,7 @@ uint16_t CDMREMB::emb(uint8_t colorCode, bool pi, uint8_t lcss) uint8_t index = 0U; index |= (colorCode << 3) & 0x78U; index |= pi ? 0x04U : 0x00U; - index |= (lcss << 1) & 0x03U; + index |= (lcss << 0) & 0x03U; return ENCODING_TABLE_1676[index]; }