diff options
author | trav90 <travawine@palemoon.org> | 2018-10-18 19:49:57 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-18 19:49:57 -0500 |
commit | 01eb57073ba97b2d6cbf20f745dfcc508197adc3 (patch) | |
tree | 040bb0bfb81c9bf86e31363af0fb2e772494d573 | |
parent | 0c98b71659b728d80231af7c33214e03114f9a62 (diff) | |
download | uxp-01eb57073ba97b2d6cbf20f745dfcc508197adc3.tar.gz |
[aom] Fix win32 debug build
Visual Studio 2015u3 fails to compile reconintra.c for win32
debug targets. It's confused by the #if conditional inside
the assert macro expansion.
The checks are obsolete upstream. Address the issue by
duplicating the assert calls for each branch of the
conditional.
-rw-r--r-- | third_party/aom/av1/common/reconintra.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/third_party/aom/av1/common/reconintra.c b/third_party/aom/av1/common/reconintra.c index 13fe11e013..0fdb6183b6 100644 --- a/third_party/aom/av1/common/reconintra.c +++ b/third_party/aom/av1/common/reconintra.c @@ -3118,16 +3118,16 @@ void av1_predict_intra_block(const MACROBLOCKD *xd, int wpx, int hpx, } else { // Can only happen for large rectangular block sizes as such large // transform sizes aren't available. - assert(bsize == BLOCK_32X64 #if CONFIG_EXT_PARTITION - || bsize == BLOCK_64X128 + assert(bsize == BLOCK_32X64 || bsize == BLOCK_64X128); +#else + assert(bsize == BLOCK_32X64); #endif // CONFIG_EXT_PARTITION - ); - assert(tx_size == TX_32X32 #if CONFIG_TX64X64 - || tx_size == TX64X64 + assert(tx_size == TX_32X32 || tx_size == TX64X64); +#else + assert(tx_size == TX_32X32); #endif // CONFIG_TX64X64 - ); // In this case, we continue to the bottom square sub-block. } #endif // CONFIG_RECT_INTRA_PRED && CONFIG_RECT_TX && (CONFIG_VAR_TX || @@ -3191,16 +3191,16 @@ void av1_predict_intra_block(const MACROBLOCKD *xd, int wpx, int hpx, } else { // Can only happen for large rectangular block sizes as such large // transform sizes aren't available. - assert(bsize == BLOCK_64X32 #if CONFIG_EXT_PARTITION - || bsize == BLOCK_128X64 + assert(bsize == BLOCK_64X32 || bsize == BLOCK_128X64); +#else + assert(bsize == BLOCK_64X32); #endif // CONFIG_EXT_PARTITION - ); - assert(tx_size == TX_32X32 #if CONFIG_TX64X64 - || tx_size == TX64X64 + assert(tx_size == TX_32X32 || tx_size == TX64X64); +#else + assert(tx_size == TX_32X32); #endif // CONFIG_TX64X64 - ); // In this case, we continue to the right square sub-block. } #endif // CONFIG_RECT_INTRA_PRED && CONFIG_RECT_TX && (CONFIG_VAR_TX || |