Commit 76b89631 authored by Alex Converse's avatar Alex Converse

Disable OD_ASSERTS asserts when NDEBUG is set

Change-Id: I3d411ef4a6a1be5e7e644f210a5296dbe18807eb
parent 1dca126c
......@@ -69,7 +69,9 @@ extern "C" {
# define OD_DISABLE_CFL (1)
# define OD_DISABLE_FILTER (1)
#if !defined(NDEBUG)
# define OD_ENABLE_ASSERTIONS (1)
#endif
# define OD_LOG(a)
# define OD_LOG_PARTIAL(a)
......
......@@ -675,6 +675,7 @@ int od_enc_rc_select_quantizers_and_lambdas(od_rc_state *rc,
od_frame_type(rc, rc->cur_frame, &closed_form_golden,
&closed_form_altref, &closed_form_cur_frame);
OD_UNUSED(closed_form_type);
OD_UNUSED(is_altref_frame);
OD_ASSERT(closed_form_type == frame_type);
OD_ASSERT(closed_form_cur_frame == rc->cur_frame);
OD_ASSERT(closed_form_altref == is_altref_frame);
......
......@@ -493,6 +493,7 @@ static double od_compute_dist_8x8(int qm, int use_activity_masking, od_coeff *x,
vardist = 0;
OD_ASSERT(qm != OD_FLAT_QM);
(void)qm;
#if 1
min_var = INT_MAX;
mean_var = 0;
......
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