int ff_wmv2_decode_picture_header(MpegEncContext * s)

{

    Wmv2Context * const w= (Wmv2Context*)s;

    int code;



#if 0

{

int i;

for(i=0; i<s->gb.size*8; i++)

    printf("%d", get_bits1(&s->gb));

//    get_bits1(&s->gb);

printf("END\n");

return -1;

}

#endif

    if(s->picture_number==0)

        decode_ext_header(w);



    s->pict_type = get_bits1(&s->gb) + 1;

    if(s->pict_type == I_TYPE){

        code = get_bits(&s->gb, 7);

        av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code);

    }

    s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);

    if(s->qscale < 0)

       return -1;



    return 0;

}

int ff_wmv2_decode_picture_header(MpegEncContext * s)

{

    Wmv2Context * const w= (Wmv2Context*)s;

    int code;



#if 0

{

int i;

for(i=0; i<s->gb.size*8; i++)

    printf("%d", get_bits1(&s->gb));



printf("END\n");

return -1;

}

#endif

    if(s->picture_number==0)

        decode_ext_header(w);



    s->pict_type = get_bits1(&s->gb) + 1;

    if(s->pict_type == I_TYPE){

        code = get_bits(&s->gb, 7);

        av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code);

    }

    s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);

    if(s->qscale < 0)

       return -1;



    return 0;

}

int FUNC_0(MpegEncContext * VAR_0)

{

    Wmv2Context * const w= (Wmv2Context*)VAR_0;

    int VAR_1;



#if 0

{

int i;

for(i=0; i<VAR_0->gb.size*8; i++)

    printf("%d", get_bits1(&VAR_0->gb));



printf("END\n");

return -1;

}

#endif

    if(VAR_0->picture_number==0)

        decode_ext_header(w);



    VAR_0->pict_type = get_bits1(&VAR_0->gb) + 1;

    if(VAR_0->pict_type == I_TYPE){

        VAR_1 = get_bits(&VAR_0->gb, 7);

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "I7:%X/\n", VAR_1);

    }

    VAR_0->chroma_qscale= VAR_0->qscale = get_bits(&VAR_0->gb, 5);

    if(VAR_0->qscale < 0)

       return -1;



    return 0;

}

int FUNC_0(MpegEncContext * VAR_0)
{ Wmv2Context * const w= (Wmv2Context*)VAR_0; int VAR_1; #if 0
{ int i; for(i=0; i<VAR_0->gb.size*8; i++) printf("%d", get_bits1(&VAR_0->gb)); printf("END\n"); return -1; } #endif
if(VAR_0->picture_number==0)
decode_ext_header(w); VAR_0->pict_type = get_bits1(&VAR_0->gb) + 1; if(VAR_0->pict_type == I_TYPE){ VAR_1 = get_bits(&VAR_0->gb, 7); av_log(VAR_0->avctx, AV_LOG_DEBUG, "I7:%X/\n", VAR_1); } VAR_0->chroma_qscale= VAR_0->qscale = get_bits(&VAR_0->gb, 5); if(VAR_0->qscale < 0)
return -1; return 0; }