Revision 630e1b27 libavcodec/mimic.c

View differences:

libavcodec/mimic.c
110 110
    ctx->prev_index = 0;
111 111
    ctx->cur_index = 15;
112 112

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

  
175
        vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 4);
175
        vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 3);
176 176
        if(!vlc) /* end-of-block code */
177 177
            return 1;
178 178
        if(vlc == -1)

Also available in: Unified diff