diff --git a/vp10/encoder/encodeframe.c b/vp10/encoder/encodeframe.c index c66be39de7a41aa775f589fba538262e387ce334..c6715ce79b2cec990adcee1f36ed163a26f0d474 100644 --- a/vp10/encoder/encodeframe.c +++ b/vp10/encoder/encodeframe.c @@ -1654,7 +1654,9 @@ static void rd_pick_sb_modes(VP10_COMP *cpi, totalrate_nocoef, #endif // CONFIG_SUPERTX bsize, ctx, best_rd); +#if CONFIG_SUPERTX assert(*totalrate_nocoef >= 0); +#endif // CONFIG_SUPERTX } } else { vp10_rd_pick_inter_mode_sub8x8(cpi, tile_data, x, mi_row, mi_col, rd_cost, @@ -1662,7 +1664,9 @@ static void rd_pick_sb_modes(VP10_COMP *cpi, totalrate_nocoef, #endif // CONFIG_SUPERTX bsize, ctx, best_rd); +#if CONFIG_SUPERTX assert(*totalrate_nocoef >= 0); +#endif // CONFIG_SUPERTX } }