diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:56:14 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:56:14 +0000 |
commit | 9da6847deba41732b110241ceeb5fb8ee5c5284a (patch) | |
tree | 55a502864924614959085e3d060fb42d4b87a572 /libavcodec | |
parent | be01eec6c7a4519a8d0516c36f43477e5f6f48a9 (diff) | |
download | ffmpeg-9da6847deba41732b110241ceeb5fb8ee5c5284a.tar.gz |
Original Commit: r34 | ods15 | 2006-09-22 18:46:57 +0300 (Fri, 22 Sep 2006) | 2 lines
off by one in codebook header
Originally committed as revision 6442 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 f62ebe98d3..8f8f2b51c7 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -376,7 +376,7 @@ static void put_codebook_header(PutBitContext * pb, codebook_t * cb) { for (i = 0; i < cb->nentries; i++) { if (sparse) put_bits(pb, 1, !!cb->entries[i].len); - if (cb->entries[i].len) put_bits(pb, 5, cb->entries[i].len); + if (cb->entries[i].len) put_bits(pb, 5, cb->entries[i].len - 1); } } |