diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index a44bc130da..11ed57a689 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -186,9 +186,9 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon cb->quantlist = NULL; ready_codebook(cb); - // codebook 2 - residue classbook, values 0..0, dimentions 200 + // codebook 2 - residue classbook, values 0..1, dimentions 200 cb = &venc->codebooks[1]; - cb->nentries = 1; + cb->nentries = 2; cb->entries = av_malloc(sizeof(cb_entry_t) * cb->nentries); for (i = 0; i < cb->nentries; i++) cb->entries[i].len = 1; cb->ndimentions = 200;