Revision c9108634

View differences:

libavcodec/mimic.c
49 49
    GetBitContext   gb;
50 50
    ScanTable       scantable;
51 51
    DSPContext      dsp;
52
    VLC             vlc1;
52
    VLC             vlc;
53 53
} MimicContext;
54 54

  
55 55
static const uint32_t huffcodes[] = {
......
109 109
    ctx->prev_index = 0;
110 110
    ctx->cur_index = 15;
111 111

  
112
    if(init_vlc(&ctx->vlc1, 8, sizeof(huffbits)/sizeof(huffbits[0]),
112
    if(init_vlc(&ctx->vlc, 8, sizeof(huffbits)/sizeof(huffbits[0]),
113 113
                 huffbits, 1, 1, huffcodes, 4, 4, 0)) {
114 114
        av_log(avctx, AV_LOG_ERROR, "error initializing vlc table\n");
115 115
        return -1;
......
171 171
        int value;
172 172
        int coeff;
173 173

  
174
        vlc = get_vlc2(&ctx->gb, ctx->vlc1.table, ctx->vlc1.bits, 4);
174
        vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 4);
175 175
        if(!vlc) /* end-of-block code */
176 176
            return 1;
177 177
        if(vlc == -1)
......
380 380
    for(i = 0; i < 16; i++)
381 381
        if(ctx->buf_ptrs[i].data[0])
382 382
            avctx->release_buffer(avctx, &ctx->buf_ptrs[i]);
383
    free_vlc(&ctx->vlc1);
383
    free_vlc(&ctx->vlc);
384 384

  
385 385
    return 0;
386 386
}

Also available in: Unified diff