Ticket #65: TAppDecTop.patch

File TAppDecTop.patch, 844 bytes (added by hironf, 9 years ago)
  • TAppDecTop.cpp

     
    14551455        if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; }
    14561456        if (!m_outputBitDepthC) { m_outputBitDepthC = g_bitDepthC; }
    14571457
     1458#if O0194_DIFFERENT_BITDEPTH_EL_BL
     1459      //Bug fix: The bit depth was not set correctly for each layer
     1460        m_outputBitDepthY = g_bitDepthY = g_bitDepthYLayer[layerIdx];
     1461        m_outputBitDepthC = g_bitDepthC = g_bitDepthCLayer[layerIdx];
     1462#endif
     1463
    14581464        char tempFileName[256];
    14591465        strcpy(tempFileName, this->getDecodedYuvLayerFileName( layerIdx ).c_str());
    14601466        m_confReconFile[layerIdx].open(tempFileName, true, m_outputBitDepthY, m_outputBitDepthC, g_bitDepthY, g_bitDepthC ); // write mode