static int advanced_decode_picture_secondary_header(VC9Context *v)

{

    GetBitContext *gb = &v->s.gb;

    int index, status = 0;



    switch(v->s.pict_type)

    {

    case P_TYPE: status = decode_p_picture_secondary_header(v); break;

    case B_TYPE: status = decode_b_picture_secondary_header(v); break;

    case BI_TYPE:

    case I_TYPE: status = decode_i_picture_secondary_header(v); break; 

    }

    if (status<0) return FRAME_SKIPED;



    /* AC Syntax */

    v->ac_table_level = decode012(gb);

    if (v->s.pict_type == I_TYPE || v->s.pict_type == BI_TYPE)

    {

        v->ac2_table_level = decode012(gb);

    }

    /* DC Syntax */

    index = decode012(gb);

    v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];

    v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];



    return 0;

}

static int advanced_decode_picture_secondary_header(VC9Context *v)

{

    GetBitContext *gb = &v->s.gb;

    int index, status = 0;



    switch(v->s.pict_type)

    {

    case P_TYPE: status = decode_p_picture_secondary_header(v); break;

    case B_TYPE: status = decode_b_picture_secondary_header(v); break;

    case BI_TYPE:

    case I_TYPE: status = decode_i_picture_secondary_header(v); break; 

    }

    if (status<0) return FRAME_SKIPED;



    

    v->ac_table_level = decode012(gb);

    if (v->s.pict_type == I_TYPE || v->s.pict_type == BI_TYPE)

    {

        v->ac2_table_level = decode012(gb);

    }

    

    index = decode012(gb);

    v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];

    v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];



    return 0;

}

    GetBitContext *gb = &v->s.gb;     GetBitContext *gb = &v->s.gb;     index = decode012(gb);     v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];     v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];     int index, status = 0;     index = decode012(gb);     v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];     v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];
static int FUNC_0(VC9Context *VAR_0)

{

    GetBitContext *gb = &VAR_0->s.gb;

    int VAR_1, VAR_2 = 0;



    switch(VAR_0->s.pict_type)

    {

    case P_TYPE: VAR_2 = decode_p_picture_secondary_header(VAR_0); break;

    case B_TYPE: VAR_2 = decode_b_picture_secondary_header(VAR_0); break;

    case BI_TYPE:

    case I_TYPE: VAR_2 = decode_i_picture_secondary_header(VAR_0); break; 

    }

    if (VAR_2<0) return FRAME_SKIPED;



    

    VAR_0->ac_table_level = decode012(gb);

    if (VAR_0->s.pict_type == I_TYPE || VAR_0->s.pict_type == BI_TYPE)

    {

        VAR_0->ac2_table_level = decode012(gb);

    }

    

    VAR_1 = decode012(gb);

    VAR_0->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[VAR_1];

    VAR_0->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[VAR_1];



    return 0;

}

static int FUNC_0(VC9Context *VAR_0)
{ GetBitContext *gb = &VAR_0->s.gb; int VAR_1, VAR_2 = 0; switch(VAR_0->s.pict_type)
{ case P_TYPE: VAR_2 = decode_p_picture_secondary_header(VAR_0); break; case B_TYPE: VAR_2 = decode_b_picture_secondary_header(VAR_0); break; case BI_TYPE:
case I_TYPE: VAR_2 = decode_i_picture_secondary_header(VAR_0); break; } if (VAR_2<0) return FRAME_SKIPED; VAR_0->ac_table_level = decode012(gb); if (VAR_0->s.pict_type == I_TYPE || VAR_0->s.pict_type == BI_TYPE)
{ VAR_0->ac2_table_level = decode012(gb); } VAR_1 = decode012(gb); VAR_0->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[VAR_1]; VAR_0->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[VAR_1]; return 0; }