Skip to content
Snippets Groups Projects
Commit 2ac1868b authored by Angie Chiang's avatar Angie Chiang
Browse files

Check if tx_type is valid in av1_get_tx_type()

Change-Id: I717bcec45e061e9685c00282f1c2a4d53a3481ef
parent bce07f1c
No related branches found
No related tags found
2 merge requests!6Rav1e 11 yushin 1,!3Rav1e 10 yushin
......@@ -1035,8 +1035,7 @@ static INLINE TX_TYPE av1_get_tx_type(PLANE_TYPE plane_type,
}
}
assert(tx_type >= DCT_DCT && tx_type < TX_TYPES);
if (is_inter_block(mbmi) && !av1_ext_tx_used[tx_set_type][tx_type])
return DCT_DCT;
if (!av1_ext_tx_used[tx_set_type][tx_type]) return DCT_DCT;
return tx_type;
#endif // CONFIG_TXK_SEL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment