Commit fb98d9c6 authored by Shelly Chiang's avatar Shelly Chiang

fix the variables for L0100 as suggested

parent 552f201a
......@@ -1567,10 +1567,10 @@ void CABACReader::MHIntra_luma_pred_modes(CodingUnit &cu)
}
}
unsigned mpm_pred[numMPMs];
// mpm_idx / rem_intra_luma_pred_mode
for (int k = 0; k < numBlocks; k++)
{
unsigned *mpm_pred = (unsigned*)alloca(numMPMs * sizeof(unsigned));
PU::getMHIntraMPMs(*pu, mpm_pred);
if (mpmFlag[k])
......
......@@ -1478,21 +1478,19 @@ void CABACWriter::MHIntra_luma_pred_modes(const CodingUnit& cu)
return;
}
unsigned numMPMs = 3;
const unsigned numMPMs = 3;
int numBlocks = CU::getNumPUs(cu);
unsigned *mpm_preds[4];
unsigned mpm_idxs[4];
unsigned pred_modes[4];
const PredictionUnit* pu = cu.firstPU;
unsigned mpm_pred[numMPMs];
for (int k = 0; k < numBlocks; k++)
{
unsigned*& mpm_pred = mpm_preds[k];
unsigned& mpm_idx = mpm_idxs[k];
unsigned& pred_mode = pred_modes[k];
mpm_pred = (unsigned*)alloca(numMPMs * sizeof(unsigned));
PU::getMHIntraMPMs(*pu, mpm_pred);
pred_mode = pu->intraDir[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment