aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/vorbis_enc.c2
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;