changeset 3827:91f130d6c3f4 libavcodec

Original Commit: r21 | ods15 | 2006-09-22 13:40:31 +0300 (Fri, 22 Sep 2006) | 2 lines placeholders for reisudes, mappings and modes
author ods15
date Mon, 02 Oct 2006 05:55:52 +0000
parents c583e895f980
children f9c449155a0e
files vorbis_enc.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 05:55:49 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 05:55:52 2006 +0000
@@ -247,6 +247,15 @@
     fc->list[0].x = 0;
     fc->list[1].x = 1 << fc->rangebits;
     for (i = 2; i < fc->values; i++) fc->list[i].x = i * 5;
+
+    venc->nresidues = 1;
+    venc->residues = av_malloc(sizeof(residue_t) * venc->nresidues);
+
+    venc->nmappings = 1;
+    venc->mappings = av_malloc(sizeof(mapping_t) * venc->nmappings);
+
+    venc->nmodes = 1;
+    venc->modes = av_malloc(sizeof(vorbis_mode_t) * venc->nmodes);
 }
 
 static inline int ilog(unsigned int a) {