changeset 3851:a778f86c28e2 libavcodec

Original Commit: r49 | ods15 | 2006-09-23 12:52:21 +0300 (Sat, 23 Sep 2006) | 3 lines fix off-by-one in both encoder and decoder. libvorbis and tremor work now, ffvorbis still doesn't
author ods15
date Mon, 02 Oct 2006 06:07:28 +0000
parents c52f4698e851
children d3bc8c09597c
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:07:26 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:07:28 2006 +0000
@@ -389,7 +389,7 @@
     put_bits(pb, 1, ordered);
     if (ordered) {
         int len = cb->entries[0].len;
-        put_bits(pb, 5, len);
+        put_bits(pb, 5, len - 1);
         i = 0;
         while (i < cb->nentries) {
             int j;