diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:55:41 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:55:41 +0000 |
commit | 1495689c5b32794d1e453da805eaa1e98a118390 (patch) | |
tree | f2c6d577e47f04c3fd4e8b506fa74cf34ff89fe9 /libavcodec/vorbis_enc.c | |
parent | 53261080b97458a55ad0ff6e064cbb75c55c8664 (diff) | |
download | ffmpeg-1495689c5b32794d1e453da805eaa1e98a118390.tar.gz |
Original Commit: r16 | ods15 | 2006-09-22 12:27:17 +0300 (Fri, 22 Sep 2006) | 2 lines
minimum size for a huffman table is 2 entries, 1bit
Originally committed as revision 6427 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |