Skip to content
Snippets Groups Projects
Commit 5d1de94d authored by Frank Bossen's avatar Frank Bossen
Browse files

Fix #190: clear entire quantized coefficient buffer

Clear entire buffer to ensure all values in the buffer are valid
even though some values may lie outside the subset of coefficients
that is effectively coded
parent 5fa422c2
No related branches found
No related tags found
No related merge requests found
......@@ -676,6 +676,7 @@ void QuantRDOQ::xRateDistOptQuant(TransformUnit &tu, const ComponentID &compID,
TCoeff *deltaU = m_deltaU;
#endif
memset(piDstCoeff, 0, sizeof(*piDstCoeff) * uiMaxNumCoeff);
memset( m_pdCostCoeff, 0, sizeof( double ) * uiMaxNumCoeff );
memset( m_pdCostSig, 0, sizeof( double ) * uiMaxNumCoeff );
#if HEVC_USE_SIGN_HIDING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment