diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:07:28 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:07:28 +0000 |
commit | 0e6fd0f12f90ba6a2edf79a398186293f2ab6334 (patch) | |
tree | 485d171da7eb1196c159d312f134a76e2fcea561 /libavcodec | |
parent | 33592a633fd29baad1bb80098760eed8d9102ee7 (diff) | |
download | ffmpeg-0e6fd0f12f90ba6a2edf79a398186293f2ab6334.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vorbis_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index bd9365236c..b0f1f73851 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -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; |