]> granicus.if.org Git - libvpx/commitdiff
fix costing bug in pick_uv_sb_mode.
authorRonald S. Bultje <rbultje@google.com>
Wed, 14 Nov 2012 23:03:39 +0000 (15:03 -0800)
committerRonald S. Bultje <rbultje@google.com>
Wed, 14 Nov 2012 23:19:45 +0000 (15:19 -0800)
Change-Id: Ia24e0fddcca9125f8e41e95dbb22444dc51767c7

vp9/encoder/rdopt.c

index 2a08ae8a1f99ca86e21ece0b9e12c2e4b56f0830..c99076e9b3ecd632c6c1b1db29cb187e2f0bf8fc 100644 (file)
@@ -1875,8 +1875,7 @@ static int64_t rd_pick_intra_sbuv_mode(VP9_COMP *cpi,
     super_block_uvrd_8x8(x, &this_rate_tokenonly,
                          &this_distortion, IF_RTCD(&cpi->rtcd), &s);
     this_rate = this_rate_tokenonly +
-                x->mbmode_cost[x->e_mbd.frame_type]
-                              [x->e_mbd.mode_info_context->mbmi.mode];
+                x->intra_uv_mode_cost[x->e_mbd.frame_type][mode];
     this_rd = RDCOST(x->rdmult, x->rddiv, this_rate, this_distortion);
 
     if (this_rd < best_rd) {