From 8e6ce6bb9e31ce61ef2b2960437405fe8e654e7e Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Fri, 28 Jun 2013 10:36:20 -0700 Subject: Removing CONFIG_DEBUG checks on assertions. Adding CHECK_MEM_ERROR macro to vp9_common.h and removing two duplicated ones from vp9_onyx_int.h and vp9_onyxd_int.h. Change-Id: I916afec61b3019f18193135dac7c35ed0f89b8b6 --- vp9/encoder/vp9_bitstream.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vp9/encoder/vp9_bitstream.c') diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index decd5a2f3..994a96779 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -553,12 +553,10 @@ static void pack_mb_tokens(vp9_writer* const bc, *tp = p; } -static void write_sb_mv_ref(vp9_writer *bc, MB_PREDICTION_MODE m, +static void write_sb_mv_ref(vp9_writer *w, MB_PREDICTION_MODE m, const vp9_prob *p) { -#if CONFIG_DEBUG assert(NEARESTMV <= m && m <= NEWMV); -#endif - write_token(bc, vp9_sb_mv_ref_tree, p, + write_token(w, vp9_sb_mv_ref_tree, p, vp9_sb_mv_ref_encoding_array - NEARESTMV + m); } -- cgit v1.2.3