shithub: libvpx

Download patch

ref: 9ee9918dad0f4bd9d6b7ae1f89f936b2b89a064f
parent: 7fb42d909e18b0477ef9830f50b9da7998ef698b
author: Jim Bankoski <[email protected]>
date: Thu Sep 12 02:39:42 EDT 2013

fix clang warning in rdopt

either missed this or it crept back in

Change-Id: I6cc1519d09e558be7250254c25bde2ae720555ea

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -59,7 +59,7 @@
 
   {RD_DC_PRED,   INTRA_FRAME,  NONE},
 
-  {NEWMV,     LAST_FRAME,   NONE},
+  {RD_NEWMV,     LAST_FRAME,   NONE},
   {RD_NEWMV,     GOLDEN_FRAME, NONE},
 
   {RD_NEARMV,    LAST_FRAME,   NONE},
@@ -3434,11 +3434,11 @@
         if (vp9_mode_order[best_mode_index].ref_frame > INTRA_FRAME)
           continue;
       }
+      mbmi->mode = rd_mode_to_mode(this_mode);
       if (cpi->sf.mode_search_skip_flags & FLAG_SKIP_INTRA_DIRMISMATCH) {
-        if (conditional_skipintra(this_mode, best_intra_mode))
+        if (conditional_skipintra(mbmi->mode, best_intra_mode))
             continue;
       }
-      mbmi->mode = rd_mode_to_mode(this_mode);
 
       super_block_yrd(cpi, x, &rate_y, &distortion_y, &skippable, NULL,
                       bsize, tx_cache, best_rd);