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
pull/126/head
Oded Shimon 19 years ago
parent 33592a633f
commit 0e6fd0f12f
  1. 2
      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;

Loading…
Cancel
Save