comparison h264.c @ 8970:9757b2f87d83 libavcodec

Store CPB count in the context. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Wed, 18 Feb 2009 23:25:59 +0000
parents f0abc5f9e726
children eaf39f9b25df
comparison
equal deleted inserted replaced
8969:9218ef5d5afb 8970:9757b2f87d83
6923 } 6923 }
6924 sps->initial_cpb_removal_delay_length = get_bits(&s->gb, 5) + 1; 6924 sps->initial_cpb_removal_delay_length = get_bits(&s->gb, 5) + 1;
6925 sps->cpb_removal_delay_length = get_bits(&s->gb, 5) + 1; 6925 sps->cpb_removal_delay_length = get_bits(&s->gb, 5) + 1;
6926 sps->dpb_output_delay_length = get_bits(&s->gb, 5) + 1; 6926 sps->dpb_output_delay_length = get_bits(&s->gb, 5) + 1;
6927 sps->time_offset_length = get_bits(&s->gb, 5); 6927 sps->time_offset_length = get_bits(&s->gb, 5);
6928 sps->cpb_cnt = cpb_count;
6928 return 0; 6929 return 0;
6929 } 6930 }
6930 6931
6931 static inline int decode_vui_parameters(H264Context *h, SPS *sps){ 6932 static inline int decode_vui_parameters(H264Context *h, SPS *sps){
6932 MpegEncContext * const s = &h->s; 6933 MpegEncContext * const s = &h->s;