diff --git a/apps/codecs/libcook/cook_fixpoint.h b/apps/codecs/libcook/cook_fixpoint.h index 7e3db8563b..35c3f57a92 100644 --- a/apps/codecs/libcook/cook_fixpoint.h +++ b/apps/codecs/libcook/cook_fixpoint.h @@ -174,14 +174,20 @@ static void scalar_dequant_math(COOKContext *q, int index, FIXP f; int i; - for(i=0 ; i= 64) ? 0 : fixp_pow2(f, -(s/2)); + if(s >= 64) + mlt_p[i]=0; + else + { + for(i=0 ; i