# HG changeset patch # User michael # Date 1166714504 0 # Node ID ad27265d0c1542c5ea1cc5c6d9449643fb983933 # Parent 5a2ee0bc27392d628524c89e0f256be20731f195 i think this if() is useless lets abuse our users to test this ;) diff -r 5a2ee0bc2739 -r ad27265d0c15 motion_est.c --- a/motion_est.c Thu Dec 21 15:20:02 2006 +0000 +++ b/motion_est.c Thu Dec 21 15:21:44 2006 +0000 @@ -119,6 +119,7 @@ int d; //FIXME check chroma 4mv, (no crashes ...) if(flags&FLAG_DIRECT){ + assert(x >= c->xmin && hx <= c->xmax<<(qpel+1) && y >= c->ymin && hy <= c->ymax<<(qpel+1)); if(x >= c->xmin && hx <= c->xmax<<(qpel+1) && y >= c->ymin && hy <= c->ymax<<(qpel+1)){ const int time_pp= s->pp_time; const int time_pb= s->pb_time;