From: Loren Merritt Date: Tue, 20 Nov 2007 08:53:26 +0000 (+0000) Subject: limit mvs to [-512,511.75] instead of [-512,512] X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a2db19e6ca89f40b2523f6964832c69369a3ee29;p=x264.git limit mvs to [-512,511.75] instead of [-512,512] git-svn-id: svn://svn.videolan.org/x264/trunk@697 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/analyse.c b/encoder/analyse.c index c403d415..3d7ba90f 100644 --- a/encoder/analyse.c +++ b/encoder/analyse.c @@ -228,7 +228,7 @@ static void x264_mb_analyse_init( x264_t *h, x264_mb_analysis_t *a, int i_qp ) int i_spel_border = 8; // 1.5 for subpel_satd, 1.5 for subpel_rd, 2 for bime, round up /* Calculate max allowed MV range */ -#define CLIP_FMV(mv) x264_clip3( mv, -i_fmv_range, i_fmv_range ) +#define CLIP_FMV(mv) x264_clip3( mv, -i_fmv_range, i_fmv_range-1 ) h->mb.mv_min[0] = 4*( -16*h->mb.i_mb_x - 24 ); h->mb.mv_max[0] = 4*( 16*( h->sps->i_mb_width - h->mb.i_mb_x - 1 ) + 24 ); h->mb.mv_min_spel[0] = CLIP_FMV( h->mb.mv_min[0] );