if (s->theora >= 0x030200) n = get_bits(&gb, 9) + 1; else n = 3; if (n != 3) { av_log(NULL,AV_LOG_ERROR, "unsupported nbms : %d\n", n); return -1; }
static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb){    Vp3DecodeContext *s = avctx->priv_data;    int i;        /* quality threshold table */    for (i = 0; i < 64; i++)	s->coded_ac_scale_factor[i] = get_bits(&gb, 16);    /* dc scale factor table */    for (i = 0; i < 64; i++)	s->coded_dc_scale_factor[i] = get_bits(&gb, 16);    /* y coeffs */    for (i = 0; i < 64; i++)	s->coded_intra_y_dequant[i] = get_bits(&gb, 8);    /* uv coeffs */    for (i = 0; i < 64; i++)	s->coded_intra_c_dequant[i] = get_bits(&gb, 8);    /* inter coeffs */    for (i = 0; i < 64; i++)	s->coded_inter_dequant[i] = get_bits(&gb, 8);    /* FIXME: read huffmann tree.. */        s->theora_tables = 1;        return 0;}