]> granicus.if.org Git - libvpx/commitdiff
Fix palette mode
authorhui su <huisu@google.com>
Tue, 23 Feb 2016 17:29:58 +0000 (09:29 -0800)
committerhui su <huisu@google.com>
Tue, 23 Feb 2016 20:01:23 +0000 (12:01 -0800)
It was broken by commit 3787b17439d00d3684646e97c18d231860dae8b9

Change-Id: I2be0f6243e8716b9ca4c0321de381419108d1abe

vp10/decoder/decodeframe.c

index 9d9fae0a51b2d47ae7943b891c42af8ebcb9da6e..509e1b8ffbb555d15766b1d6593ecd76957f3ab1 100644 (file)
@@ -1830,6 +1830,9 @@ static void decode_block(VP10Decoder *const pbi, MACROBLOCKD *const xd,
             (xd->mb_to_bottom_edge >= 0 ?
              0 : xd->mb_to_bottom_edge >> (5 + pd->subsampling_y));
 
+        if (plane <= 1 && mbmi->palette_mode_info.palette_size[plane])
+          vp10_decode_palette_tokens(xd, plane, r);
+
         for (row = 0; row < max_blocks_high; row += step)
           for (col = 0; col < max_blocks_wide; col += step)
             predict_and_reconstruct_intra_block(xd,