From 8d81f1c636fc85c88882fcbfd827c1173163f2f5 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 5 Dec 2016 09:05:13 +0000 Subject: [PATCH] Only generate embedded LCs when they're the correct type. --- DMREmbeddedLC.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/DMREmbeddedLC.cpp b/DMREmbeddedLC.cpp index f5a801c..3180923 100644 --- a/DMREmbeddedLC.cpp +++ b/DMREmbeddedLC.cpp @@ -250,7 +250,17 @@ CDMRLC* CDMREmbeddedLC::processMultiBlockEmbeddedLC() if (!CCRC::checkFiveBit(lcData, crc)) return NULL; - return new CDMRLC(lcData); + CDMRLC* lc = new CDMRLC(lcData); + + // Only generate the LC when it's the correct FLCO + switch (lc->getFLCO()) { + case FLCO_GROUP: + case FLCO_USER_USER: + return lc; + default: + delete lc; + return NULL; + } } // Deal with a single block embedded LC