ctrl_get_reference does not need user_priv.

The relationship of the user private data at runtime
is not preserved from decode() to this call which may
occur at an unknown point in the future

Change-Id: Ia7eb25365c805147614574c3af87aedbe0305fc6
This commit is contained in:
hkuang 2014-07-02 17:20:45 -07:00
parent 28a794f680
commit 10aa23f751
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ string DecodeFile(const string &filename) {
ref.idx = rnd.Rand8() % 3;
decoder.Control(VP9_GET_REFERENCE, &ref);
CheckUserPrivateData(ref.img.user_priv, &frame_num);
CheckUserPrivateData(ref.img.user_priv, NULL);
}
md5.Add(img);
}

View File

@ -671,7 +671,7 @@ static vpx_codec_err_t ctrl_get_reference(vpx_codec_alg_priv_t *ctx,
VP9Worker *const worker = ctx->frame_workers;
FrameWorkerData *const worker_data = (FrameWorkerData *)worker->data1;
vp9_get_reference_dec(worker_data->pbi, data->idx, &fb);
yuvconfig2image(&data->img, fb, worker_data->user_priv);
yuvconfig2image(&data->img, fb, NULL);
return VPX_CODEC_OK;
} else {
return VPX_CODEC_INVALID_PARAM;