diff --git a/source/Lib/EncoderLib/EncCu.cpp b/source/Lib/EncoderLib/EncCu.cpp index 93cb6a1d1fe13bf72154be0d5ca11b8bef309416..a5828fc76f1309352453c2e94fcb3435edfa4477 100644 --- a/source/Lib/EncoderLib/EncCu.cpp +++ b/source/Lib/EncoderLib/EncCu.cpp @@ -778,9 +778,8 @@ void EncCu::xCompressCU( CodingStructure *&tempCS, CodingStructure *&bestCS, Par const Position lumaRefPos(chromaCentral.x << getComponentScaleX(COMPONENT_Cb, tempCS->area.chromaFormat), chromaCentral.y << getComponentScaleY(COMPONENT_Cb, tempCS->area.chromaFormat)); const CodingStructure* baseCS = bestCS->picture->cs; const CodingUnit* colLumaCu = baseCS->getCU(lumaRefPos, CHANNEL_TYPE_LUMA); - const TransformUnit* tu = baseCS->getTU(lumaRefPos, CHANNEL_TYPE_LUMA); - if (colLumaCu && tu) + if (colLumaCu) { currTestMode.qp = colLumaCu->qp; }