Only generate embedded LCs when they're the correct type.

This commit is contained in:
Jonathan Naylor 2016-12-05 09:05:13 +00:00 committed by GitHub
parent 78e1abfcca
commit 8d81f1c636

View file

@ -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