*/
typedef struct HuffContext {
int length;
- int maxlength;
int current;
uint32_t *bits;
int *lengths;
int *recode1, *recode2;
int escapes[3];
int *last;
- int lcur;
} DBCtx;
/* possible runs of blocks */
}
hc->values[hc->current] = get_bits(gb, 8);
hc->current++;
- if(hc->maxlength < length)
- hc->maxlength = length;
return 0;
} else { //Node
int r;
}
tmp1.length = 256;
- tmp1.maxlength = 0;
tmp1.current = 0;
tmp1.bits = av_mallocz(256 * 4);
tmp1.lengths = av_mallocz(256 * sizeof(int));
tmp1.values = av_mallocz(256 * sizeof(int));
tmp2.length = 256;
- tmp2.maxlength = 0;
tmp2.current = 0;
tmp2.bits = av_mallocz(256 * 4);
tmp2.lengths = av_mallocz(256 * sizeof(int));
ctx.last = last;
huff.length = ((size + 3) >> 2) + 4;
- huff.maxlength = 0;
huff.current = 0;
huff.values = av_mallocz_array(huff.length, sizeof(int));
if (!huff.values) {
// Initialize
for(i = 0; i < (1 << (bits + stereo)); i++) {
h[i].length = 256;
- h[i].maxlength = 0;
h[i].current = 0;
h[i].bits = av_mallocz(256 * 4);
h[i].lengths = av_mallocz(256 * sizeof(int));