OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7849cc
)
Original Commit: r51 | ods15 | 2006-09-23 16:32:30 +0300 (Sat, 23 Sep 2006) | 2 lines
author
Oded Shimon
<ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:07:32 +0000
(06:07 +0000)
committer
Oded Shimon
<ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:07:32 +0000
(06:07 +0000)
deobfuscate a bit
Originally committed as revision 6458 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vorbis_enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/vorbis_enc.c
b/libavcodec/vorbis_enc.c
index
d28abec
..
a466519
100644
(file)
--- a/
libavcodec/vorbis_enc.c
+++ b/
libavcodec/vorbis_enc.c
@@
-189,7
+189,11
@@
static void ready_codebook(codebook_t * cb) {
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));