Commit 5027415d authored by Jingning Han's avatar Jingning Han

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
parent ebeb1155
......@@ -4517,6 +4517,7 @@ void av1_rd_pick_inter_mode_sb_seg_skip(AV1_COMP *cpi, TileDataEnc *tile_data,
mbmi->ref_frame[0] = LAST_FRAME;
mbmi->ref_frame[1] = NONE;
mbmi->mv[0].as_int = 0;
mbmi->tx_size = max_txsize_lookup[bsize];
#if CONFIG_MOTION_VAR
mbmi->motion_mode = SIMPLE_TRANSLATION;
#endif // CONFIG_MOTION_VAR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment