]> git.videolan.org Git - x264.git/commitdiff
limit mvs to [-512,511.75] instead of [-512,512]
authorLoren Merritt <pengvado@videolan.org>
Tue, 20 Nov 2007 08:53:26 +0000 (08:53 +0000)
committerLoren Merritt <pengvado@videolan.org>
Tue, 20 Nov 2007 08:53:26 +0000 (08:53 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@697 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/analyse.c

index c403d4156aea588896309c6d0a27485ed594ee8c..3d7ba90ff0e176a5cda4f0eb686256e5d633f5e9 100644 (file)
@@ -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] );