From 29bf82eccbcc8bcfebfdbfa4974ea6a6573bc235 Mon Sep 17 00:00:00 2001 From: Antoine Lorence <antoine.lorence@insa-rennes.fr> Date: Mon, 17 Nov 2014 09:48:19 +0100 Subject: [PATCH] [MICD] Use the right constant for Quantization size --- app/Operations/MICD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Operations/MICD.cpp b/app/Operations/MICD.cpp index ab62a76..91782a9 100644 --- a/app/Operations/MICD.cpp +++ b/app/Operations/MICD.cpp @@ -211,7 +211,7 @@ void MICD::codec(int nlq,int ier,int *icode,int *ireco) { void MICD::set_levels() { // Fills in iloiqu with the specified values - if( quantdef->size - 1 > 32 || quantdef->size - 1 < 1 ) { + if( quantdef->size - 1 > N_MAX_THRESHOLD || quantdef->size - 1 < 1 ) { char buffer[255]; sprintf( buffer, "Error in MICD::set_levels:\nquantdef->GetNumThresholds() = %d", quantdef->size - 1 ); throw buffer; @@ -249,7 +249,7 @@ void MICD::setQuantification( Quantification *tquantdef ) { if( tquantdef == NULL ) { throw "Error in MICD::setQuantDef:\ntquantdef = NULL"; } - if( tquantdef->size - 1 > 32 || tquantdef->size - 1 < 1 ) { + if( tquantdef->size - 1 > N_MAX_THRESHOLD || tquantdef->size - 1 < 1 ) { char buffer[255]; sprintf( buffer, "Error in MICD::setQuantDef:\ntquantdef->GetNumThresholds() = %d", tquantdef->size - 1 ); throw buffer; -- GitLab