Commit 1eac584f authored by Sebastien Alaiwan's avatar Sebastien Alaiwan
Browse files

Don't reject invalid warped motion model

Fallback to default warp params instead.
The extra assignment to DEFAULT_WMTYPE prevents an assertion.

Change-Id: If21a46cbb4cc9761e5c94bd2fcbc3a06342d677d
parent 69a16433
......@@ -2729,7 +2729,9 @@ 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)) {
aom_internal_error(&cm->error, AOM_CODEC_ERROR, "Invalid Warped Model");
// Invalid warped model, fallback to default
mbmi->wm_params[0] = default_warp_params;
mbmi->motion_mode = SIMPLE_TRANSLATION;
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