Commit 0e6fd0f1 authored by Oded Shimon's avatar Oded Shimon

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
parent 33592a63
......@@ -389,7 +389,7 @@ static void put_codebook_header(PutBitContext * pb, codebook_t * cb) {
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment