From: Debargha Mukherjee Date: Fri, 15 Jan 2016 19:02:30 +0000 (-0800) Subject: Fixing some compile issues X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eee6afe0b9fcc958e8c5242daa34203e5c0c07c5;p=libvpx Fixing some compile issues Fixes a breakage introduced with the latest merge from master and cleans up a couple of compiler warnings. Change-Id: Ia55b39ba78e43f6fe52c54d7f34faa4dd6bbbf26 --- diff --git a/vp10/common/blockd.h b/vp10/common/blockd.h index a3969de61..95084a70e 100644 --- a/vp10/common/blockd.h +++ b/vp10/common/blockd.h @@ -407,9 +407,10 @@ static INLINE TX_TYPE get_tx_type(PLANE_TYPE plane_type, return DCT_DCT; #if CONFIG_EXT_TX - if (mbmi->sb_type >= BLOCK_8X8 && plane_type == PLANE_TYPE_Y && - ALLOW_INTRA_EXT_TX) +#if ALLOW_INTRA_EXT_TX + if (mbmi->sb_type >= BLOCK_8X8 && plane_type == PLANE_TYPE_Y) return mbmi->tx_type; +#endif // ALLOW_INTRA_EXT_TX #endif // CONFIG_EXT_TX if (use_ext_intra_mode_info) @@ -446,8 +447,10 @@ static INLINE TX_TYPE get_tx_type(PLANE_TYPE plane_type, return DCT_DCT; if (mbmi->sb_type >= BLOCK_8X8) { if (plane_type == PLANE_TYPE_Y) { - if (is_inter_block(mbmi) || ALLOW_INTRA_EXT_TX) - return mbmi->tx_type; +#if !ALLOW_INTRA_EXT_TX + if (is_inter_block(mbmi)) +#endif // ALLOW_INTRA_EXT_TX + return mbmi->tx_type; } if (is_inter_block(mbmi)) // UV Inter only diff --git a/vp10/decoder/decodeframe.c b/vp10/decoder/decodeframe.c index 11ee03c55..4d8bdb450 100644 --- a/vp10/decoder/decodeframe.c +++ b/vp10/decoder/decodeframe.c @@ -3302,14 +3302,10 @@ static void debug_check_frame_counts(const VP10_COMMON *const cm) { assert(!memcmp(&cm->counts.tx, &zero_counts.tx, sizeof(cm->counts.tx))); assert(!memcmp(cm->counts.skip, zero_counts.skip, sizeof(cm->counts.skip))); assert(!memcmp(&cm->counts.mv, &zero_counts.mv, sizeof(cm->counts.mv))); -#if CONFIG_EXT_TX assert(!memcmp(cm->counts.inter_ext_tx, zero_counts.inter_ext_tx, sizeof(cm->counts.inter_ext_tx))); assert(!memcmp(cm->counts.intra_ext_tx, zero_counts.intra_ext_tx, sizeof(cm->counts.intra_ext_tx))); -#else - assert(!memcmp(cm->counts.intra_ext_tx, zero_counts.intra_ext_tx, -#endif // CONFIG_EXT_TX } #endif // NDEBUG