[Ffmpeg-cvslog] r6491 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 08:08:49 CEST 2006


Author: ods15
Date: Mon Oct  2 08:08:48 2006
New Revision: 6491

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r86 | ods15 | 2006-09-29 21:08:42 +0300 (Fri, 29 Sep 2006) | 2 lines

make put_vector ignore unused codebook entries

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 08:08:48 2006
@@ -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;




More information about the ffmpeg-cvslog mailing list