Fix best ref frame rd cost update in sub8x8 non-RD mode search
authorJingning Han <jingning@google.com>
Wed, 7 Jan 2015 19:57:36 +0000 (11:57 -0800)
committerJingning Han <jingning@google.com>
Wed, 7 Jan 2015 20:00:02 +0000 (12:00 -0800)
This fixes the issue that sub8x8 inter blocks always end up
with GOLDEN_FRAME.

Change-Id: Id0c25cbb9c2003f43b4dff8fb1572512c246e077

vp9/encoder/vp9_pickmode.c

index 926aca2..60c7160 100644 (file)
@@ -1165,7 +1165,7 @@ void vp9_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
     }  // loop through sub8x8 blocks
 
     if (this_rd < best_rd) {
-      this_rd = best_rd;
+      best_rd = this_rd;
       best_ref_frame = ref_frame;
     }
   }  // reference frames