shithub: libvpx

Download patch

ref: befb0393c5eb835a8aa53d101edc204d80400048
parent: 9ba8aed179f796f90b80b44c1e4453dc2468a6cb
author: Paul Wilkins <paulwilkins@google.com>
date: Tue Mar 26 09:11:52 EDT 2013

Fix crash when --tune=ssim is selected.

Crash fix only. No functional change or testing.

Change-Id: I0c6d114d024c29fc11ae61666f5938f11b01dd6a

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -198,7 +198,7 @@
 #define OUTPUT_NORM_ACT_STATS   0
 
 #if USE_ACT_INDEX
-// Calculate and activity index for each mb
+// Calculate an activity index for each mb
 static void calc_activity_index(VP9_COMP *cpi, MACROBLOCK *x) {
   VP9_COMMON *const cm = &cpi->common;
   int mb_row, mb_col;
@@ -267,6 +267,8 @@
   int mb_row, mb_col;
   unsigned int mb_activity;
   int64_t activity_sum = 0;
+
+  x->mb_activity_ptr = cpi->mb_activity_map;
 
   // for each macroblock row in image
   for (mb_row = 0; mb_row < cm->mb_rows; mb_row++) {