Merge "Fix a potential invalid memory access in non-RD coding flow"

This commit is contained in:
Jingning Han 2014-07-14 17:25:43 -07:00 коммит произвёл Gerrit Code Review
Родитель 832e4f3c6d b957439c87
Коммит 2806ea91f5
3 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -139,5 +139,5 @@ VP9_INSTANTIATE_TEST_CASE(
CpuSpeedTest,
::testing::Values(::libvpx_test::kTwoPassGood, ::libvpx_test::kOnePassGood,
::libvpx_test::kRealTime),
::testing::Range(0, 8));
::testing::Range(0, 9));
} // namespace

Просмотреть файл

@ -679,7 +679,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int rate2 = 0;
int64_t dist2 = 0;
const int dst_stride = pd->dst.stride;
const int dst_stride = cpi->sf.reuse_inter_pred_sby ? bw : pd->dst.stride;
const int src_stride = p->src.stride;
int block_idx = 0;

Просмотреть файл

@ -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;
}