# HG changeset patch # User ods15 # Date 1159769244 0 # Node ID ead3ae56d1b6f40bea72d04daa29b27e230d4efe # Parent 4d9aba494478ed11a5c2fd66359069455507edfd Original Commit: r47 | ods15 | 2006-09-23 12:34:48 +0300 (Sat, 23 Sep 2006) | 2 lines make ffvorbis happy about init stuff, still can't play correctly diff -r 4d9aba494478 -r ead3ae56d1b6 vorbis_enc.c --- a/vorbis_enc.c Mon Oct 02 05:56:40 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:07:24 2006 +0000 @@ -266,7 +266,7 @@ cb->delta = 1 << ((7 - book) * 2); cb->min = -cb->delta*2; cb->seq_p = 0; - cb->lookup = 2; + cb->lookup = 1; cb->quantlist = av_malloc(sizeof(int) * cb_lookup_vals(cb->lookup, cb->ndimentions, cb->nentries)); for (i = 0; i < cb->nentries; i++) cb->quantlist[i] = i; ready_codebook(cb); @@ -313,10 +313,13 @@ rc->begin = 0; rc->end = 1 << (venc->blocksize[0] - 1); rc->partition_size = 64; - rc->classifications = 1; + rc->classifications = 2; rc->classbook = 1; rc->books = av_malloc(sizeof(int[8]) * rc->classifications); - for (i = 0; i < 8; i++) rc->books[0][i] = 2 + i; + for (i = 0; i < rc->classifications; i++) { + int j; + for (j = 0; j < 8; j++) rc->books[i][j] = 2 + j; + } venc->nmappings = 1; venc->mappings = av_malloc(sizeof(mapping_t) * venc->nmappings);