Ticket #1374: bitDepth_check_bug_fix.patch

File bitDepth_check_bug_fix.patch, 1.0 KB (added by eeehey, 10 years ago)

bug fix patch for ticket #1374

  • TAppEncCfg.cpp

     
    14891489#define xConfirmPara(a,b) check_failed |= confirmPara(a,b)
    14901490
    14911491  const UInt maxBitDepth=(m_chromaFormatIDC==CHROMA_400) ? m_internalBitDepth[CHANNEL_TYPE_LUMA] : std::max(m_internalBitDepth[CHANNEL_TYPE_LUMA], m_internalBitDepth[CHANNEL_TYPE_CHROMA]);
    1492   xConfirmPara(m_bitDepthConstraint<maxBitDepth, "The internalBitDepth must not be greater than the bitDepthConstraint value");
    1493   xConfirmPara(m_chromaFormatConstraint<m_chromaFormatIDC, "The chroma format used must not be greater than the chromaFormatConstraint value");
     1492  xConfirmPara(m_bitDepthConstraint>maxBitDepth, "The internalBitDepth must not be greater than the bitDepthConstraint value");
     1493  xConfirmPara(m_chromaFormatConstraint>m_chromaFormatIDC, "The chroma format used must not be greater than the chromaFormatConstraint value");
    14941494
    14951495  if (m_profile==Profile::MAINREXT || m_profile==Profile::HIGHTHROUGHPUTREXT)
    14961496  {