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


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/TLibEncoder/TEncGOP.cpp

    r1588 r1605  
    16631663                                               heightEL == heightBL ? MV_SCALING_FACTOR_1X : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL) );
    16641664
    1665         pcSlice->getPic()->setPosScalingFactor( refLayerIdc,
    1666                                                 ((widthBL  << 16) + (widthEL  >> 1)) / widthEL,
    1667                                                 ((heightBL << 16) + (heightEL >> 1)) / heightEL );
     1665        pcSlice->getPic()->setPosScalingFactor( refLayerIdc, ( ( Int64( widthBL ) << 16 ) + ( widthEL >> 1 ) ) / widthEL, ( ( Int64( heightBL ) << 16 ) + ( heightEL >> 1 ) ) / heightEL );
    16681666
    16691667        TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec();
Note: See TracChangeset for help on using the changeset viewer.