--- branches/dev-api-4/xvidcore/src/motion/estimation_pvop.c 2003/10/28 23:42:09 1193 +++ branches/dev-api-4/xvidcore/src/motion/estimation_pvop.c 2003/10/28 23:47:29 1194 @@ -21,7 +21,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: estimation_pvop.c,v 1.1.2.4 2003-10-22 16:30:07 syskin Exp $ + * $Id: estimation_pvop.c,v 1.1.2.5 2003-10-28 23:47:29 Isibaar Exp $ * ****************************************************************************/ @@ -1014,11 +1014,12 @@ MAX((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, prevMB->sad16))); } - } else { - stat_thresh = MIN((&pMBs[(x-1) + y * pParam->mb_width])->sad16, + else { + stat_thresh = MIN((&pMBs[(x-1) + y * pParam->mb_width])->sad16, MIN((&pMBs[x + (y-1) * pParam->mb_width])->sad16, MIN((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, prevMB->sad16))); + } } }