changeset 3837:2eb4d646d36b libavcodec

Original Commit: r34 | ods15 | 2006-09-22 18:46:57 +0300 (Fri, 22 Sep 2006) | 2 lines off by one in codebook header
author ods15
date Mon, 02 Oct 2006 05:56:14 +0000
parents ff31b13b57df
children 6ccaab22c4d6
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 05:56:12 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 05:56:14 2006 +0000
@@ -376,7 +376,7 @@
 
         for (i = 0; i < cb->nentries; i++) {
             if (sparse) put_bits(pb, 1, !!cb->entries[i].len);
-            if (cb->entries[i].len) put_bits(pb, 5, cb->entries[i].len);
+            if (cb->entries[i].len) put_bits(pb, 5, cb->entries[i].len - 1);
         }
     }