Commit dbfc3692 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

seeing a 10x slowing down, revert now for investigation

Revert "Fix a problem of using an uninitialized parameter"

This reverts commit 538af7db

Change-Id: I071aa9b7068ef515abb8ae9584df15067706ccb5
parent 538af7db
......@@ -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");
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);
Supports Markdown
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