shithub: libvpx

Download patch

ref: 802b798f671b0060aa37971723628194abceb551
parent: c3fd9bbdafdb9a0df06b32ad538acb9825993a65
author: Jingning Han <jingning@google.com>
date: Wed Jan 7 06:57:36 EST 2015

Fix best ref frame rd cost update in sub8x8 non-RD mode search

This fixes the issue that sub8x8 inter blocks always end up
with GOLDEN_FRAME.

Change-Id: Id0c25cbb9c2003f43b4dff8fb1572512c246e077

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1165,7 +1165,7 @@
     }  // loop through sub8x8 blocks
 
     if (this_rd < best_rd) {
-      this_rd = best_rd;
+      best_rd = this_rd;
       best_ref_frame = ref_frame;
     }
   }  // reference frames