Fix a potential invalid memory access in non-RD coding flow
This commit fixes a potential out-of-boundary memory access due to the use of reuse_inter_pred_sby in the non-RD coding flow. It resolves the corresponding asan error. Change-Id: Iff605f5921230966990013541cd855d698810922
This commit is contained in:
committed by
Gerrit Code Review
parent
3cddd81c6d
commit
b957439c87
@@ -296,6 +296,7 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf,
|
||||
}
|
||||
if (speed >= 8) {
|
||||
int i;
|
||||
sf->max_intra_bsize = BLOCK_32X32;
|
||||
for (i = 0; i < BLOCK_SIZES; ++i)
|
||||
sf->inter_mode_mask[i] = INTER_NEAREST;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user