Commit 742f646f authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

Prevent warp if global_motion_params are invalid

BUG=aomedia:1195

Change-Id: Ib643ed9d3a23b83e91d908940f5777f6d13b8b19
parent 2830fd9f
......@@ -40,6 +40,7 @@ static INLINE int allow_warp(const MODE_INFO *const mi,
*final_warp_params = default_warp_params;
if (mbmi->wm_params[0].invalid) return 0;
if (gm_params->invalid) return 0;
if (warp_types->local_warp_allowed) {
if ((build_for_obmc && WARP_WM_NEIGHBORS_WITH_OBMC) || (!build_for_obmc)) {
......
......@@ -76,6 +76,7 @@ static void convert_to_params(const double *params, int32_t *model) {
void convert_model_to_params(const double *params, WarpedMotionParams *model) {
convert_to_params(params, model->wmmat);
model->wmtype = get_gmtype(model);
model->invalid = 0;
}
// Adds some offset to a global motion parameter and handles
......
Markdown is supported
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