Commit 3d166b97 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Prevent shift by >= 32

parent acadacfa
Pipeline #12236 passed with stages
in 7 minutes and 56 seconds
......@@ -43,8 +43,8 @@ static void decomp_tx(uint8_t (*const txa)[2 /* txsz, step */][32 /* y */][32 /*
const uint16_t *const tx_masks)
{
const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[from];
const int is_split =
depth > 1 ? 0 : (tx_masks[depth] >> (y_off * 4 + x_off)) & 1;
const int is_split = (from == (int) TX_4X4 || depth > 1) ? 0 :
(tx_masks[depth] >> (y_off * 4 + x_off)) & 1;
if (is_split) {
const enum RectTxfmSize sub = t_dim->sub;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment