printf("%s q:%d s:%X ", s->pict_type == I_TYPE ? "I" : "P" , s->qscale, s->pict_type == I_TYPE ? code : s->use_skip_mb_code);
int msmpeg4_decode_picture_header(MpegEncContext * s){    int code;    s->pict_type = get_bits(&s->gb, 2) + 1;    if (s->pict_type != I_TYPE &&        s->pict_type != P_TYPE)        return -1;    s->qscale = get_bits(&s->gb, 5);    if (s->pict_type == I_TYPE) {        code = get_bits(&s->gb, 5);         /* 0x17: one slice, 0x18: two slices */        if (code < 0x17)            return -1;        s->slice_height = s->mb_height / (code - 0x16);        if(s->msmpeg4_version==2){            s->rl_chroma_table_index = 2;            s->rl_table_index = 2;            s->dc_table_index = 0; //not used        }else{            s->rl_chroma_table_index = decode012(&s->gb);            s->rl_table_index = decode012(&s->gb);            s->dc_table_index = get_bits1(&s->gb);        }        s->no_rounding = 1;/*	printf(" %d %d %d %d     \n", 		s->qscale,		s->rl_chroma_table_index,		s->rl_table_index, 		s->dc_table_index);*/    } else {        s->use_skip_mb_code = get_bits1(&s->gb);                if(s->msmpeg4_version==2){            s->rl_table_index = 2;            s->rl_chroma_table_index = s->rl_table_index;            s->dc_table_index = 0; //not used            s->mv_table_index = 0;        }else{            s->rl_table_index = decode012(&s->gb);            s->rl_chroma_table_index = s->rl_table_index;            s->dc_table_index = get_bits1(&s->gb);            s->mv_table_index = get_bits1(&s->gb);        }/*	printf(" %d %d %d %d %d     \n", 		s->use_skip_mb_code, 		s->rl_table_index, 		s->rl_chroma_table_index, 		s->dc_table_index,		s->mv_table_index);*/	if(s->flipflop_rounding){	    s->no_rounding ^= 1;	}else{	    s->no_rounding = 0;	}//	printf("%d", s->no_rounding);    }    #if 0if(s->msmpeg4_version==2){int i;printf("%s q:%d s:%X ", s->pict_type == I_TYPE ? "I" : "P" , s->qscale,                        s->pict_type == I_TYPE ? code : s->use_skip_mb_code);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#ifdef DEBUG    printf("*****frame %d:\n", frame_count++);#endif    return 0;}