--- trunk/xvidcore/src/motion/estimation_common.c 2004/09/04 15:07:45 1548 +++ trunk/xvidcore/src/motion/estimation_common.c 2004/10/03 14:25:01 1549 @@ -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_common.c,v 1.5 2004-07-08 07:12:54 syskin Exp $ + * $Id: estimation_common.c,v 1.6 2004-10-03 14:25:01 syskin Exp $ * ****************************************************************************/ @@ -331,9 +331,8 @@ if (bDirection & 8) CHECK_CANDIDATE(x, y + iDiamondSize, 8); /* now we're doing diagonal checks near our candidate */ - + bDirection = *iDirection; if (*iDirection) { /* checking if anything found */ - bDirection = *iDirection; *iDirection = 0; x = data->currentMV->x; y = data->currentMV->y; if (bDirection & 3) { /* our candidate is left or right */ @@ -347,7 +346,7 @@ x = data->currentMV->x; y = data->currentMV->y; } } - while (*iDirection); + while (bDirection); } void