--- branches/release-1_3-branch/xvidcore/src/motion/gmc.c 2019/11/12 14:41:36 2179 +++ branches/release-1_3-branch/xvidcore/src/motion/gmc.c 2019/11/12 14:48:35 2180 @@ -269,7 +269,7 @@ { const int W = This->sW; const int H = This->sH; - const int rho = 3-This->accuracy; + const int rho = 3-MIN(This->accuracy, 3); const int32_t Rounder = ( 128 - (rounding<<(2*rho)) ) << 16;