Revision 00bbe276

View differences:

libavcodec/vp3.c
2014 2014
        }
2015 2015
        s->huff_code_size++;
2016 2016
        s->hbits <<= 1;
2017
        read_huffman_tree(avctx, gb);
2017
        if (read_huffman_tree(avctx, gb))
2018
            return -1;
2018 2019
        s->hbits |= 1;
2019
        read_huffman_tree(avctx, gb);
2020
        if (read_huffman_tree(avctx, gb))
2021
            return -1;
2020 2022
        s->hbits >>= 1;
2021 2023
        s->huff_code_size--;
2022 2024
    }
......
2192 2194
        s->huff_code_size = 1;
2193 2195
        if (!get_bits1(gb)) {
2194 2196
            s->hbits = 0;
2195
            read_huffman_tree(avctx, gb);
2197
            if(read_huffman_tree(avctx, gb))
2198
                return -1;
2196 2199
            s->hbits = 1;
2197
            read_huffman_tree(avctx, gb);
2200
            if(read_huffman_tree(avctx, gb))
2201
                return -1;
2198 2202
        }
2199 2203
    }
2200 2204

  
......
2250 2254
//            theora_decode_comments(avctx, gb);
2251 2255
            break;
2252 2256
        case 0x82:
2253
            theora_decode_tables(avctx, &gb);
2257
            if (theora_decode_tables(avctx, &gb))
2258
                return -1;
2254 2259
            break;
2255 2260
        default:
2256 2261
            av_log(avctx, AV_LOG_ERROR, "Unknown Theora config packet: %d\n", ptype&~0x80);

Also available in: Unified diff