]> granicus.if.org Git - libvpx/commitdiff
Minor fix in TX_SIZE contexts
authorDeb Mukherjee <debargha@google.com>
Sat, 8 Jun 2013 14:14:58 +0000 (07:14 -0700)
committerDeb Mukherjee <debargha@google.com>
Sat, 8 Jun 2013 14:14:58 +0000 (07:14 -0700)
Change-Id: I9e81f84877e18ba7e55d66389ed60e64a5b7abcc

vp9/common/vp9_pred_common.c

index 16ba53e2f47e222ff6f108b03f8e31079da716f5..f7c9f2c26e8cfbc4a40af3cd7a65d23d32c710c4 100644 (file)
@@ -359,18 +359,18 @@ unsigned char vp9_get_pred_context(const VP9_COMMON *const cm,
         max_tx_size = TX_16X16;
       else
         max_tx_size = TX_32X32;
-      if (xd->up_available) {
+      if (above_in_image) {
         above_context = (above_mi->mbmi.mb_skip_coeff ?
                          max_tx_size : above_mi->mbmi.txfm_size);
       }
-      if (xd->left_available) {
+      if (left_in_image) {
         left_context = (left_mi->mbmi.mb_skip_coeff ?
                         max_tx_size : left_mi->mbmi.txfm_size);
       }
-      if (!xd->left_available) {
+      if (!left_in_image) {
         left_context = above_context;
       }
-      if (!xd->up_available) {
+      if (!above_in_image) {
         above_context = left_context;
       }
       pred_context = (above_context + left_context + 1) >> 1;