ref: 67cb1f093cc531b8523fcf05ee78bfe26bb7b7a7
parent: b0003e497264ee14c1360a4e6b7a103b69728ea2
author: Deb Mukherjee <[email protected]>
date: Sat Jun 8 03:14:58 EDT 2013
Minor fix in TX_SIZE contexts Change-Id: I9e81f84877e18ba7e55d66389ed60e64a5b7abcc
--- a/vp9/common/vp9_pred_common.c
+++ b/vp9/common/vp9_pred_common.c
@@ -359,18 +359,18 @@
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;