Bug fix: use correct count_mb_ref_frame_usage
authorScott LaVarnway <slavarnway@google.com>
Tue, 11 Dec 2012 01:38:55 +0000 (17:38 -0800)
committerScott LaVarnway <slavarnway@google.com>
Tue, 11 Dec 2012 01:38:55 +0000 (17:38 -0800)
Change-Id: I9702f3e9ed664c2537e7874698c944620b07fff8

vp8/encoder/encodeframe.c

index ba4f50b..115834a 100644 (file)
@@ -895,7 +895,7 @@ void vp8_encode_frame(VP8_COMP *cpi)
 
                 for(c_idx = 0; c_idx < MAX_REF_FRAMES; c_idx++)
                     cpi->mb.count_mb_ref_frame_usage[c_idx] +=
-                        x->count_mb_ref_frame_usage[c_idx];
+                        cpi->mb_row_ei[i].mb.count_mb_ref_frame_usage[c_idx];
 
                 /* add up counts for each thread */
                 sum_coef_counts(x, &cpi->mb_row_ei[i].mb);