Commit c0fb035a authored by Loren Merritt's avatar Loren Merritt

round esa range to a multiple of 4


git-svn-id: svn://svn.videolan.org/x264/trunk@716 df754926-b1dd-0310-bc7b-ec298dee348c
parent 644878dc
......@@ -454,10 +454,10 @@ me_hex2:
case X264_ME_ESA:
{
const int min_x = X264_MAX( bmx - i_me_range, mv_x_min);
const int min_y = X264_MAX( bmy - i_me_range, mv_y_min);
const int max_x = X264_MIN( bmx + i_me_range, mv_x_max);
const int max_y = X264_MIN( bmy + i_me_range, mv_y_max);
const int min_x = X264_MAX( bmx - i_me_range, mv_x_min );
const int min_y = X264_MAX( bmy - i_me_range, mv_y_min );
const int max_x = ((X264_MIN( bmx + i_me_range, mv_x_max ) - min_x + 3) & ~3) + min_x - 1;
const int max_y = X264_MIN( bmy + i_me_range, mv_y_max );
int mx, my;
#if 0
/* plain old exhaustive search */
......
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