static int standard_decode_picture_secondary_header(VC9Context *v)

{

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

    int status = 0, index;



    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: break; //Nothing needed as it's done in the epilog

    }

    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 standard_decode_picture_secondary_header(VC9Context *v)

{

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

    int status = 0, index;



    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: 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;     int status = 0, index;     index = decode012(gb);     v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];     v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];     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 = 0, VAR_2;



    switch (VAR_0->s.pict_type)

    {

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

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

    case BI_TYPE:

    case I_TYPE: break; 

    }

    if (VAR_1 < 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_2 = decode012(gb);

    VAR_0->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[VAR_2];

    VAR_0->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[VAR_2];

   

    return 0;

}

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