comparison h264.c @ 3291:454de57e45cf libavcodec

reinit quant matrices if pps is overwritten by another of the same pps_id.
author lorenm
date Fri, 05 May 2006 18:08:01 +0000
parents d061e145af94
children 9ae9653d706c
comparison
equal deleted inserted replaced
3290:97cc530ab3d3 3291:454de57e45cf
7388 pps->chroma_qp_index_offset= get_se_golomb(&s->gb); 7388 pps->chroma_qp_index_offset= get_se_golomb(&s->gb);
7389 pps->deblocking_filter_parameters_present= get_bits1(&s->gb); 7389 pps->deblocking_filter_parameters_present= get_bits1(&s->gb);
7390 pps->constrained_intra_pred= get_bits1(&s->gb); 7390 pps->constrained_intra_pred= get_bits1(&s->gb);
7391 pps->redundant_pic_cnt_present = get_bits1(&s->gb); 7391 pps->redundant_pic_cnt_present = get_bits1(&s->gb);
7392 7392
7393 pps->transform_8x8_mode= 0;
7394 h->dequant_coeff_pps= -1; //contents of sps/pps can change even if id doesn't, so reinit
7393 memset(pps->scaling_matrix4, 16, 6*16*sizeof(uint8_t)); 7395 memset(pps->scaling_matrix4, 16, 6*16*sizeof(uint8_t));
7394 memset(pps->scaling_matrix8, 16, 2*64*sizeof(uint8_t)); 7396 memset(pps->scaling_matrix8, 16, 2*64*sizeof(uint8_t));
7395 7397
7396 if(get_bits_count(&s->gb) < bit_length){ 7398 if(get_bits_count(&s->gb) < bit_length){
7397 pps->transform_8x8_mode= get_bits1(&s->gb); 7399 pps->transform_8x8_mode= get_bits1(&s->gb);