Revision 7ae7300e libavcodec/smacker.c

View differences:

libavcodec/smacker.c
201 201

  
202 202
    if(get_bits1(gb)) {
203 203
        smacker_decode_tree(gb, &tmp1, 0, 0);
204
        get_bits1(gb);
204
        skip_bits1(gb);
205 205
        res = init_vlc(&vlc[0], SMKTREE_BITS, tmp1.length,
206 206
                    tmp1.lengths, sizeof(int), sizeof(int),
207 207
                    tmp1.bits, sizeof(uint32_t), sizeof(uint32_t), INIT_VLC_LE);
......
214 214
    }
215 215
    if(get_bits1(gb)){
216 216
        smacker_decode_tree(gb, &tmp2, 0, 0);
217
        get_bits1(gb);
217
        skip_bits1(gb);
218 218
        res = init_vlc(&vlc[1], SMKTREE_BITS, tmp2.length,
219 219
                    tmp2.lengths, sizeof(int), sizeof(int),
220 220
                    tmp2.bits, sizeof(uint32_t), sizeof(uint32_t), INIT_VLC_LE);
......
250 250
    huff.values = av_mallocz(huff.length * sizeof(int));
251 251

  
252 252
    smacker_decode_bigtree(gb, &huff, &ctx);
253
    get_bits1(gb);
253
    skip_bits1(gb);
254 254
    if(ctx.last[0] == -1) ctx.last[0] = huff.current++;
255 255
    if(ctx.last[1] == -1) ctx.last[1] = huff.current++;
256 256
    if(ctx.last[2] == -1) ctx.last[2] = huff.current++;
......
601 601
        h[i].bits = av_mallocz(256 * 4);
602 602
        h[i].lengths = av_mallocz(256 * sizeof(int));
603 603
        h[i].values = av_mallocz(256 * sizeof(int));
604
        get_bits1(&gb);
604
        skip_bits1(&gb);
605 605
        smacker_decode_tree(&gb, &h[i], 0, 0);
606
        get_bits1(&gb);
606
        skip_bits1(&gb);
607 607
        if(h[i].current > 1) {
608 608
            res = init_vlc(&vlc[i], SMKTREE_BITS, h[i].length,
609 609
                    h[i].lengths, sizeof(int), sizeof(int),

Also available in: Unified diff