comparison common.cpp @ 500:fbcc1303dfeb memory-leaks

Fixed bug in LSH_N_POINT_BITS coding when using AudioDB with LSH indexes
author mas01mc
date Sat, 10 Jan 2009 20:01:53 +0000
parents 2d5c3f8e8c22
children
comparison
equal deleted inserted replaced
486:920919d62542 500:fbcc1303dfeb
178 trackOffsetTable[k] = cumTrack; 178 trackOffsetTable[k] = cumTrack;
179 cumTrack += trackTable[k] * dbH->dim; 179 cumTrack += trackTable[k] * dbH->dim;
180 } 180 }
181 181
182 // Assign correct number of point bits per track in LSH indexing / retrieval 182 // Assign correct number of point bits per track in LSH indexing / retrieval
183 lsh_n_point_bits = dbH->flags >> 28; 183 lsh_n_point_bits = dbH->flags >> LSH_POINT_BITS_FIELD_POSITION;
184 if( !lsh_n_point_bits ) 184 if( !lsh_n_point_bits )
185 lsh_n_point_bits = O2_DEFAULT_LSH_N_POINT_BITS; 185 lsh_n_point_bits = O2_DEFAULT_LSH_N_POINT_BITS;
186 } 186 }
187 187
188 void audioDB::initInputFile (const char *inFile, bool loadData) { 188 void audioDB::initInputFile (const char *inFile, bool loadData) {