Commit 8a92cd0b authored by Yue Chen's avatar Yue Chen

Revert "Don't reject invalid warped motion model"

This reverts commit 1eac584f.

Reason for revert: As Peter pointed out, reverting motion_mode to SIMPLE_TRANSLATION only at the decoder side could mess up coding of compound_type. We'll fix this issue from encoder side.

Change-Id: Ic9b3b8e0f0d06b22630d5f870a8d9737a596fa22
parent b90a97a8
......@@ -2609,9 +2609,7 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
if (find_projection(mbmi->num_proj_ref[0], pts, pts_inref, bsize,
mbmi->mv[0].as_mv.row, mbmi->mv[0].as_mv.col,
&mbmi->wm_params[0], mi_row, mi_col)) {
// Invalid warped model, fallback to default
mbmi->wm_params[0] = default_warp_params;
mbmi->motion_mode = SIMPLE_TRANSLATION;
aom_internal_error(&cm->error, AOM_CODEC_ERROR, "Invalid Warped Model");
}
}
#endif // CONFIG_WARPED_MOTION
......
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