# HG changeset patch # User michael # Date 1165930272 0 # Node ID bba6e75e026b9045158b6242675848ca70c158ee # Parent c5f74ebdba348b6e70d537bed52a10f59e79d111 mv overflow in map fix (untested except regression tests) diff -r c5f74ebdba34 -r bba6e75e026b motion_est_template.c --- a/motion_est_template.c Mon Dec 11 20:18:36 2006 +0000 +++ b/motion_est_template.c Tue Dec 12 13:31:12 2006 +0000 @@ -823,20 +823,27 @@ cmpf= s->dsp.me_cmp[size]; chroma_cmpf= s->dsp.me_cmp[size+1]; - for(j=i=0; i>=ME_MAP_MV_BITS; minima[j].y= key & ((1< xmax || minima[j].x < xmin + || minima[j].y > ymax || minima[j].y < ymin) + continue; + minima[j].checked=0; if(minima[j].x || minima[j].y) minima[j].height+= (mv_penalty[((minima[j].x)<