diff options
author | Yunqing Wang <yunqingwang@google.com> | 2014-07-11 10:48:57 -0700 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2014-07-11 10:48:57 -0700 |
commit | 978642a426c86b4fbf85484eb8ee70f8f975d5b1 (patch) | |
tree | 2570c2c1759824c498402eadd736eaf4e81c8e4b /vp9/common | |
parent | 1b5e9871f7a4fe7b89da047df046b0cfb4b3566d (diff) | |
download | libvpx-978642a426c86b4fbf85484eb8ee70f8f975d5b1.tar libvpx-978642a426c86b4fbf85484eb8ee70f8f975d5b1.tar.gz libvpx-978642a426c86b4fbf85484eb8ee70f8f975d5b1.tar.bz2 libvpx-978642a426c86b4fbf85484eb8ee70f8f975d5b1.zip |
Remove unnecessary assertions
Removed 2 unnecessary assertions.
Change-Id: I0f8877d0494bf3ecdb0d7931ccbcaa8289e01d8b
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/vp9_blockd.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h index 9d5ad9cbd..29af98a59 100644 --- a/vp9/common/vp9_blockd.h +++ b/vp9/common/vp9_blockd.h @@ -242,9 +242,7 @@ typedef struct macroblockd { static INLINE BLOCK_SIZE get_subsize(BLOCK_SIZE bsize, PARTITION_TYPE partition) { - const BLOCK_SIZE subsize = subsize_lookup[partition][bsize]; - assert(subsize < BLOCK_SIZES); - return subsize; + return subsize_lookup[partition][bsize]; } extern const TX_TYPE intra_mode_to_tx_type_lookup[INTRA_MODES]; @@ -288,9 +286,7 @@ static INLINE TX_SIZE get_uv_tx_size(const MB_MODE_INFO *mbmi, static INLINE BLOCK_SIZE get_plane_block_size(BLOCK_SIZE bsize, const struct macroblockd_plane *pd) { - BLOCK_SIZE bs = ss_size_lookup[bsize][pd->subsampling_x][pd->subsampling_y]; - assert(bs < BLOCK_SIZES); - return bs; + return ss_size_lookup[bsize][pd->subsampling_x][pd->subsampling_y]; } typedef void (*foreach_transformed_block_visitor)(int plane, int block, |