Skip to content

Commit 31408d4

Browse files
committed
Fix DMREMB fec decode bug
1 parent ed7f593 commit 31408d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DMREMB.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ void CDMREMB::putData(const unsigned char* data)
4444
DMREMB[1U] = (data[18U] << 4) & 0xF0U;
4545
DMREMB[1U] |= (data[19U] >> 4) & 0x0FU;
4646

47-
CQR1676::decode(DMREMB);
47+
char code = CQR1676::decode(DMREMB);
4848

49-
m_colorCode = (DMREMB[0U] >> 4) & 0x0FU;
50-
m_PI = (DMREMB[0U] & 0x08U) == 0x08U;
51-
m_LCSS = (DMREMB[0U] >> 1) & 0x03U;
49+
m_colorCode = (code >> 4) & 0x0FU;
50+
m_PI = (code & 0x08U) == 0x08U;
51+
m_LCSS = (code >> 1) & 0x03U;
5252
}
5353

5454
void CDMREMB::getData(unsigned char* data) const

0 commit comments

Comments
 (0)