Encoder Bug fix for EncDbOpt
When enable deblocking optimization (EncDbOpt=1), two bugs are observed.
- in function xGetBoundaryStrengthSingle(), when checking chroma component, cuP sometimes is unavailable (null). To fix this, a condition to check chroma part is valid is added.
- in function xPelFilterLuma(), when maxFilterLengthP is 7, some samples from block P are out of picture, which are not allocated in memory. To fix this, more memory is allocated. Simulation confirms no change in CTC results.