From 78954af268efa76094ca24e0d63aed7e4435df42 Mon Sep 17 00:00:00 2001 From: Monty Date: Sat, 13 Feb 2010 06:47:54 +0000 Subject: [PATCH] Correct some amount of minor bitrot in the codebook training code svn path=/trunk/vorbis/; revision=16895 --- lib/res0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/res0.c b/lib/res0.c index f1306a6..5b4c013 100644 --- a/lib/res0.c +++ b/lib/res0.c @@ -389,7 +389,7 @@ static int _encodepart(oggpack_buffer *opb,float *vec, int n, int entry=local_book_besterror(book,vec+i*dim); #ifdef TRAIN_RES - if(entry>0) + if(entry>=0) acc[entry]++; #endif @@ -544,7 +544,7 @@ static int _01forward(oggpack_buffer *opb, #ifdef TRAIN_RES for(i=0;ibegin;jbegin;jend;j++){ if(in[i][j]>look->tmax)look->tmax=in[i][j]; if(in[i][j]tmin)look->tmin=in[i][j]; } -- 2.7.4