static inline void decode_hrd_parameters(H264Context *h, SPS *sps){

    MpegEncContext * const s = &h->s;

    int cpb_count, i;

    cpb_count = get_ue_golomb(&s->gb) + 1;

    get_bits(&s->gb, 4); 

    get_bits(&s->gb, 4); 

    for(i=0; i<cpb_count; i++){

        get_ue_golomb(&s->gb); 

        get_ue_golomb(&s->gb); 

        get_bits1(&s->gb);     

    }

    get_bits(&s->gb, 5); 

    sps->cpb_removal_delay_length = get_bits(&s->gb, 5) + 1;

    sps->dpb_output_delay_length = get_bits(&s->gb, 5) + 1;

    sps->time_offset_length = get_bits(&s->gb, 5);

}
