fix assertion failure
This commit fix an assertion in the handle_inter_mode. The assertion "assert(pb_mv_precision <= mbmi->max_mv_precision)" is moved to the proper place.
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 2f98b88..0ea4e81 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -4141,13 +4141,12 @@
precision_dx >= 0; precision_dx--) {
MvSubpelPrecision pb_mv_precision =
precision_def->precision[precision_dx];
- assert(pb_mv_precision <= mbmi->max_mv_precision);
mbmi->pb_mv_precision = pb_mv_precision;
if (!is_pb_mv_precision_active(cm, mbmi, bsize) &&
(pb_mv_precision != mbmi->max_mv_precision)) {
continue;
}
-
+ assert(pb_mv_precision <= mbmi->max_mv_precision);
#if CONFIG_IMPROVED_JMVD
// apply early termination method to jmvd scaling factors
if (cpi->sf.inter_sf.early_terminate_jmvd_scale_factor) {