projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e93d00
)
Original Commit: r86 | ods15 | 2006-09-29 21:08:42 +0300 (Fri, 29 Sep 2006) | 2 lines
author
Oded Shimon
<ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:08:48 +0000
(06:08 +0000)
committer
Oded Shimon
<ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:08:48 +0000
(06:08 +0000)
make put_vector ignore unused codebook entries
Originally committed as revision 6491 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
396ca4b
..
0cc974e
100644
(file)
--- a/
libavcodec/vorbis_enc.c
+++ b/
libavcodec/vorbis_enc.c
@@
-915,6
+915,7
@@
static float * put_vector(codebook_t * book, PutBitContext * pb, float * num) {
for (i = 0; i < book->nentries; i++) {
float d = 0.;
int j;
+ if (!book->entries[i].len) continue;
for (j = 0; j < book->ndimentions; j++) {
float a = (book->dimentions[i * book->ndimentions + j] - num[j]);
d += a*a;