Changeset 1605 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
10 Jan 2018, 22:45:06 (7 years ago)
Author:
seregin
Message:

fix overflow related to scalability ratio calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1600 r1605  
    17151715                                     heightEL == heightBL ? MV_SCALING_FACTOR_1X : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL) );
    17161716
    1717         m_pcPic->setPosScalingFactor( refLayerIdc,
    1718                                      ((widthBL  << 16) + (widthEL  >> 1)) / widthEL,
    1719                                      ((heightBL << 16) + (heightEL >> 1)) / heightEL );
     1717        m_pcPic->setPosScalingFactor( refLayerIdc, ( ( Int64( widthBL ) << 16 ) + ( widthEL >> 1 ) ) / widthEL, ( ( Int64( heightBL ) << 16 ) + ( heightEL >> 1 ) ) / heightEL );
    17201718
    17211719        TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec();
Note: See TracChangeset for help on using the changeset viewer.