if (!filterflag) {
#endif // CONFIG_FILTERINTRA
#if CONFIG_PALETTE
- if (xd->mi[0].src_mi->mbmi.palette_enabled[plane !=0 ]) {
+ if (xd->mi[0].src_mi->mbmi.palette_enabled[plane !=0]) {
uint8_t *palette = xd->mi[0].src_mi->mbmi.palette_colors +
plane * PALETTE_MAX_SIZE;
int bs = 4 * (1 << tx_size);
int r, c;
uint8_t *map = NULL;
- if (xd->plane[1].subsampling_x && xd->plane[1].subsampling_y)
+ if (xd->plane[1].subsampling_x || xd->plane[1].subsampling_y)
map = xd->plane[plane != 0].color_index_map;
- else if (!xd->plane[1].subsampling_x && !xd->plane[1].subsampling_y)
+ else
map = xd->plane[0].color_index_map;
for (r = 0; r < bs; r++) {
#if CONFIG_PALETTE
if (xd->mi[0].src_mi->mbmi.sb_type >= BLOCK_8X8 &&
- xd->plane[1].subsampling_x && xd->plane[1].subsampling_y &&
+ (xd->plane[1].subsampling_x || xd->plane[1].subsampling_y) &&
cpi->common.allow_palette_mode) {
int colors_u = vp9_count_colors(src_u, src_stride, rows, cols);
int colors_v = vp9_count_colors(src_v, src_stride, rows, cols);