diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:08:48 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:08:48 +0000 |
commit | 8b33748c45b5f425ef0291f2daed7732ea2fe7cc (patch) | |
tree | e87a003619ebc45758cb709f5bd8b4106675be0a /libavcodec/vorbis_enc.c | |
parent | 5e93d002e5a60d08f9ea7566fb36d9b88353196a (diff) | |
download | ffmpeg-8b33748c45b5f425ef0291f2daed7732ea2fe7cc.tar.gz |
Original Commit: r86 | ods15 | 2006-09-29 21:08:42 +0300 (Fri, 29 Sep 2006) | 2 lines
make put_vector ignore unused codebook entries
Originally committed as revision 6491 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 396ca4b829..0cc974e3c8 100644 --- 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; |