Mercurial > libavcodec.hg
changeset 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 |
files | vorbis_enc.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vorbis_enc.c Mon Oct 02 06:07:30 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:07:32 2006 +0000 @@ -189,7 +189,11 @@ cb_entry_t * e = &cb->entries[i]; int j = 0; if (h[0]) h[0] = 0; - else for (j = e->len; !h[j]; j--) assert(j); + else { + for (j = e->len; j; j--) + if (h[j]) break; + assert(j); + } e->codeword = h[j]; h[j] = 0; for (j++; j <= e->len; j++) h[j] = e->codeword | (1 << (j - 1));