Detect use of warped motion in realtime only build
Warped motion is disabled in realtime only build, so the decoding should
fail if the bitstream uses warped motion.
BUG=chromium:1230932,chromium:1232808
Change-Id: I1bba0239a775e15a38a707ac3381078c3087027d
diff --git a/av1/common/reconinter.c b/av1/common/reconinter.c
index 70f4c6d..2f0850b 100644
--- a/av1/common/reconinter.c
+++ b/av1/common/reconinter.c
@@ -104,8 +104,13 @@
if (av1_allow_warp(mi, warp_types, &xd->global_motion[mi->ref_frame[ref]], 0,
inter_pred_params->scale_factors,
- &inter_pred_params->warp_params))
+ &inter_pred_params->warp_params)) {
+#if CONFIG_REALTIME_ONLY
+ aom_internal_error(xd->error_info, AOM_CODEC_UNSUP_FEATURE,
+ "Warped motion is disabled in realtime only build.");
+#endif
inter_pred_params->mode = WARP_PRED;
+ }
}
void av1_make_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst,
@@ -154,6 +159,9 @@
inter_pred_params->subsampling_y, &inter_pred_params->conv_params);
}
#endif
+ else {
+ assert(0 && "Unsupported inter_pred_params->mode");
+ }
}
static const uint8_t wedge_master_oblique_odd[MASK_MASTER_SIZE] = {