Fix for crash when using high bitdepth and var-tx Change-Id: Ide48fa4312f7828f99290f7a2be878f5673fa716