]> granicus.if.org Git - libvpx/commitdiff
Fix the CONFIG_ALPHA build.
authorAlex Converse <aconverse@google.com>
Wed, 16 Apr 2014 17:08:30 +0000 (10:08 -0700)
committerAlex Converse <aconverse@google.com>
Tue, 22 Apr 2014 18:23:49 +0000 (11:23 -0700)
Change-Id: Ib89fe34812c17cd6294ce3c38f87d43a79abb16f

vp9/encoder/vp9_quantize.c
vp9/encoder/vp9_quantize.h

index 2b2aa9addb60b605f69ef12568ae918efa35e7a6..9ae0148fe8c17dc6eb0a98fa627f054c8ee0bcf9 100644 (file)
@@ -242,10 +242,10 @@ void vp9_init_plane_quantizers(VP9_COMP *cpi, MACROBLOCK *x) {
   }
 
 #if CONFIG_ALPHA
-  x->plane[3].quant = cpi->a_quant[qindex];
-  x->plane[3].quant_shift = cpi->a_quant_shift[qindex];
-  x->plane[3].zbin = cpi->a_zbin[qindex];
-  x->plane[3].round = cpi->a_round[qindex];
+  x->plane[3].quant = quants->a_quant[qindex];
+  x->plane[3].quant_shift = quants->a_quant_shift[qindex];
+  x->plane[3].zbin = quants->a_zbin[qindex];
+  x->plane[3].round = quants->a_round[qindex];
   x->plane[3].zbin_extra = (int16_t)((cm->a_dequant[qindex][1] * zbin) >> 7);
   xd->plane[3].dequant = cm->a_dequant[qindex];
 #endif
index 7a9388300022f52d8f8afabbe4bc8ff38bc65bf5..1835e9cccb774bd0faabf2f2acb967f42bd8abde 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef VP9_ENCODER_VP9_QUANTIZE_H_
 #define VP9_ENCODER_VP9_QUANTIZE_H_
 
+#include "./vpx_config.h"
 #include "vp9/encoder/vp9_block.h"
 
 #ifdef __cplusplus