changeset 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 97cc530ab3d3
children 1fd5fce70e66
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri May 05 10:27:44 2006 +0000
+++ b/h264.c	Fri May 05 18:08:01 2006 +0000
@@ -7390,6 +7390,8 @@
     pps->constrained_intra_pred= get_bits1(&s->gb);
     pps->redundant_pic_cnt_present = get_bits1(&s->gb);
 
+    pps->transform_8x8_mode= 0;
+    h->dequant_coeff_pps= -1; //contents of sps/pps can change even if id doesn't, so reinit
     memset(pps->scaling_matrix4, 16, 6*16*sizeof(uint8_t));
     memset(pps->scaling_matrix8, 16, 2*64*sizeof(uint8_t));