Ticket #400: bugfix_alfmnf.patch

File bugfix_alfmnf.patch, 834 bytes (added by yamakage, 12 years ago)
  • source/Lib/TLibEncoder/TEncAdaptiveLoopFilter.cpp

     
    489489 
    490490  Int maxDepthInWidth   = (Int)(logf((float)(m_numLCUInPicWidth     ))/logf(2.0));
    491491  Int maxDepthInHeight  = (Int)(logf((float)(m_numLCUInPicHeight    ))/logf(2.0));
    492   Int maxDepthInFilters = (Int)(logf((float)(m_iALFMaxNumberFilters ))/logf(2.0));
     492  Int maxDepthInFilters = (Int)(logf((float)(m_iALFMaxNumberFilters ))/logf(4.0));
    493493  m_alfPQTMaxDepth = (maxDepthInWidth  > maxDepthInHeight ) ? maxDepthInHeight  : maxDepthInWidth ;
    494494  m_alfPQTMaxDepth = (m_alfPQTMaxDepth > maxDepthInFilters) ? maxDepthInFilters : m_alfPQTMaxDepth ;
    495495