Bugfix for inter_get_spatial_merge_candidates() b2 block checking

Wrong variable was used to check for x-border
This commit is contained in:
Marko Viitanen 2014-03-04 15:32:15 +02:00
parent df669ca7df
commit 91e83db3c6

View file

@ -307,7 +307,7 @@ void inter_get_spatial_merge_candidates(int32_t x, int32_t y, int8_t depth, cu_i
*b1 = &cu[x_cu + cur_block_in_scu - 1 + (y_cu - 1) * LCU_T_CU_WIDTH];
if (!(*b1)->coded) *b1 = NULL;
if (x_cu != 0) {
if (x != 0) {
*b2 = &cu[x_cu - 1 + (y_cu - 1) * LCU_T_CU_WIDTH];
if(!(*b2)->coded) *b2 = NULL;
}