seeing a 10x slowing down, revert now for investigation

Revert "Fix a problem of using an uninitialized parameter"

This reverts commit 538af7db5f

Change-Id: I071aa9b7068ef515abb8ae9584df15067706ccb5
This commit is contained in:
Yaowu Xu 2014-06-02 09:02:19 -07:00 committed by Gerrit Code Review
parent 538af7db5f
commit dbfc3692eb

View File

@ -486,11 +486,15 @@ static void update_frame_size(VP9_COMP *cpi) {
vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR,
"Failed to reallocate scaled last source buffer");
set_speed_features(cpi);
if (cpi->sf.search_method == NSTEP)
vp9_init3smotion_compensation(&cpi->ss_cfg, cpi->scaled_source.y_stride);
else if (cpi->sf.search_method == DIAMOND)
vp9_init_dsmotion_compensation(&cpi->ss_cfg, cpi->scaled_source.y_stride);
{
int y_stride = cpi->scaled_source.y_stride;
if (cpi->sf.search_method == NSTEP) {
vp9_init3smotion_compensation(&cpi->ss_cfg, y_stride);
} else if (cpi->sf.search_method == DIAMOND) {
vp9_init_dsmotion_compensation(&cpi->ss_cfg, y_stride);
}
}
init_macroblockd(cm, xd);
}