Avoid the use of uninitialized value in ActiveMap encoding route

This commit resets the transform size to be the maximum possible
value. It avoids out-of-boundary writing when the ActiveMap is
turned on.

Change-Id: I8302dd9a5c9fffaea3edf9ad33f72aa111999737
This commit is contained in:
Jingning Han
2016-07-11 11:24:24 -07:00
committed by Yaowu Xu
parent 72120969bc
commit 6408895e69

View File

@@ -9780,6 +9780,7 @@ void av1_rd_pick_inter_mode_sb_seg_skip(const AV1_COMP *cpi,
#else // CONFIG_GLOBAL_MOTION
mbmi->mv[0].as_int = 0;
#endif // CONFIG_GLOBAL_MOTION
mbmi->tx_size = max_txsize_lookup[bsize];
x->skip = 1;
#if CONFIG_REF_MV