comparison vorbis_enc.c @ 3853:30e824ef9e03 libavcodec

Original Commit: r51 | ods15 | 2006-09-23 16:32:30 +0300 (Sat, 23 Sep 2006) | 2 lines deobfuscate a bit
author ods15
date Mon, 02 Oct 2006 06:07:32 +0000
parents d3bc8c09597c
children 8de41fcc6500
comparison
equal deleted inserted replaced
3852:d3bc8c09597c 3853:30e824ef9e03
187 187
188 for (i = 0; i < cb->nentries; i++) { 188 for (i = 0; i < cb->nentries; i++) {
189 cb_entry_t * e = &cb->entries[i]; 189 cb_entry_t * e = &cb->entries[i];
190 int j = 0; 190 int j = 0;
191 if (h[0]) h[0] = 0; 191 if (h[0]) h[0] = 0;
192 else for (j = e->len; !h[j]; j--) assert(j); 192 else {
193 for (j = e->len; j; j--)
194 if (h[j]) break;
195 assert(j);
196 }
193 e->codeword = h[j]; 197 e->codeword = h[j];
194 h[j] = 0; 198 h[j] = 0;
195 for (j++; j <= e->len; j++) h[j] = e->codeword | (1 << (j - 1)); 199 for (j++; j <= e->len; j++) h[j] = e->codeword | (1 << (j - 1));
196 } 200 }
197 for (i = 0; i < 33; i++) assert(!h[i]); 201 for (i = 0; i < 33; i++) assert(!h[i]);