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

Originally committed as revision 6456 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Oded Shimon 2006-10-02 06:07:28 +00:00
parent 33592a633f
commit 0e6fd0f12f
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ static void put_codebook_header(PutBitContext * pb, codebook_t * cb) {
put_bits(pb, 1, ordered); put_bits(pb, 1, ordered);
if (ordered) { if (ordered) {
int len = cb->entries[0].len; int len = cb->entries[0].len;
put_bits(pb, 5, len); put_bits(pb, 5, len - 1);
i = 0; i = 0;
while (i < cb->nentries) { while (i < cb->nentries) {
int j; int j;