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); /* bit_rate_scale */

    get_bits(&s->gb, 4); /* cpb_size_scale */

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

        get_ue_golomb(&s->gb); /* bit_rate_value_minus1 */

        get_ue_golomb(&s->gb); /* cpb_size_value_minus1 */

        get_bits1(&s->gb);     /* cbr_flag */

    }

    get_bits(&s->gb, 5); /* initial_cpb_removal_delay_length_minus1 */

    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);

}

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);

}

static inline void FUNC_0(H264Context *VAR_0, SPS *VAR_1){

    MpegEncContext * const s = &VAR_0->s;

    int VAR_2, VAR_3;

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

    get_bits(&s->gb, 4); 

    get_bits(&s->gb, 4); 

    for(VAR_3=0; VAR_3<VAR_2; VAR_3++){

        get_ue_golomb(&s->gb); 

        get_ue_golomb(&s->gb); 

        get_bits1(&s->gb);     

    }

    get_bits(&s->gb, 5); 

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

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

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

}

static inline void FUNC_0(H264Context *VAR_0, SPS *VAR_1){ MpegEncContext * const s = &VAR_0->s; int VAR_2, VAR_3; VAR_2 = get_ue_golomb(&s->gb) + 1; get_bits(&s->gb, 4); get_bits(&s->gb, 4); for(VAR_3=0; VAR_3<VAR_2; VAR_3++){ get_ue_golomb(&s->gb); get_ue_golomb(&s->gb); get_bits1(&s->gb); } get_bits(&s->gb, 5); VAR_1->cpb_removal_delay_length = get_bits(&s->gb, 5) + 1; VAR_1->dpb_output_delay_length = get_bits(&s->gb, 5) + 1; VAR_1->time_offset_length = get_bits(&s->gb, 5); }