Commit 528cbd1f authored by Loren Merritt's avatar Loren Merritt

subpel search: always check mvp.



git-svn-id: svn://svn.videolan.org/x264/trunk@370 df754926-b1dd-0310-bc7b-ec298dee348c
parent 429e0603
......@@ -366,8 +366,8 @@ static void refine_subpel( x264_t *h, x264_me_t *m, int hpel_iters, int qpel_ite
* the result of the fullpel search */
if( hpel_iters )
{
int mx = abs(bmx - m->mvp[0]) < 4 ? m->mvp[0] : bmx;
int my = abs(bmy - m->mvp[1]) < 4 ? m->mvp[1] : bmy;
int mx = x264_clip3( m->mvp[0], h->mb.mv_min[0], h->mb.mv_max[0] );
int my = x264_clip3( m->mvp[1], h->mb.mv_min[1], h->mb.mv_max[1] );
if( mx != bmx || my != bmy )
COST_MV_SAD( mx, my );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment