Revision d7455a1c libavcodec/vp3.c

View differences:

libavcodec/vp3.c
331 331
    int bounding_values_array[256];
332 332
} Vp3DecodeContext;
333 333

  
334
static int theora_decode_tables(AVCodecContext *avctx, GetBitContext *gb);
335

  
336 334
/************************************************************************
337 335
 * VP3 specific functions
338 336
 ************************************************************************/
......
2141 2139

  
2142 2140
    if (s->theora && get_bits1(&gb))
2143 2141
    {
2144
#if 1
2145 2142
        av_log(avctx, AV_LOG_ERROR, "Header packet passed to frame decoder, skipping\n");
2146 2143
        return -1;
2147
#else
2148
        int ptype = get_bits(&gb, 7);
2149

  
2150
        skip_bits(&gb, 6*8); /* "theora" */
2151

  
2152
        switch(ptype)
2153
        {
2154
            case 1:
2155
                theora_decode_comments(avctx, &gb);
2156
                break;
2157
            case 2:
2158
                theora_decode_tables(avctx, &gb);
2159
                    init_dequantizer(s);
2160
                break;
2161
            default:
2162
                av_log(avctx, AV_LOG_ERROR, "Unknown Theora config packet: %d\n", ptype);
2163
        }
2164
        return buf_size;
2165
#endif
2166 2144
    }
2167 2145

  
2168 2146
    s->keyframe = !get_bits1(&gb);

Also available in: Unified diff