changeset 3886:e96794bc2b0a libavcodec

Original Commit: r86 | ods15 | 2006-09-29 21:08:42 +0300 (Fri, 29 Sep 2006) | 2 lines make put_vector ignore unused codebook entries
author ods15
date Mon, 02 Oct 2006 06:08:48 +0000
parents fd71db4e00ba
children 71ba8e680704
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:08:46 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:08:48 2006 +0000
@@ -915,6 +915,7 @@
     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;