Changeset 661 in SHVCSoftware for branches/SHM-6-dev


Ignore:
Timestamp:
10 Apr 2014, 01:48:50 (11 years ago)
Author:
seregin
Message:

fix for the ticket #21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r656 r661  
    35073507  if( iMotionMapping == 1 )
    35083508  {
    3509     iBX += 4;
    3510     iBY += 4;
    3511   }
    3512 #endif
    3513 
    3514   if ( iBX >= baseColPic->getPicYuvRec()->getWidth() || iBY >= baseColPic->getPicYuvRec()->getHeight() ||
    3515        iBX < 0                                        || iBY < 0                                          )
     3509    // actually, motion field compression is performed in the Void TComPic::compressMotion() function, but with (+4) the rounding may have effect on the picture boundary check.
     3510    iBX = ( ( iBX + 4 ) >> 4 ) << 4;
     3511    iBY = ( ( iBY + 4 ) >> 4 ) << 4;
     3512  }
     3513#endif
     3514
     3515  if ( iBX < 0 || iBX >= baseColPic->getPicYuvRec()->getWidth() || iBY < 0 || iBY >= baseColPic->getPicYuvRec()->getHeight() )
    35163516  {
    35173517    return NULL;
Note: See TracChangeset for help on using the changeset viewer.