ref: 3d166b978622c68651b09b3701a3fe4cc6cbc7f0
parent: acadacfad972b58227faf52595cd236119c2a840
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Wed Jan 1 12:42:11 EST 2020
Prevent shift by >= 32
--- a/src/lf_mask.c
+++ b/src/lf_mask.c
@@ -43,8 +43,8 @@
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;