changeset 2920:1443b4d3f4ab libavcodec

10l: cqm weren't initialized in svq3.
author lorenm
date Wed, 26 Oct 2005 03:58:06 +0000
parents 71ca5ed04789
children d22a3556292a
files h264.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Tue Oct 25 01:17:20 2005 +0000
+++ b/h264.c	Wed Oct 26 03:58:06 2005 +0000
@@ -3033,6 +3033,9 @@
 
     s->obmc_scratchpad = NULL;
 
+    if(!h->dequant4_coeff[0])
+        init_dequant_tables(h);
+
     return 0;
 fail:
     free_tables(h);
@@ -3051,6 +3054,9 @@
     h->dequant_coeff_pps= -1;
     s->unrestricted_mv=1;
     s->decode=1; //FIXME
+
+    memset(h->pps.scaling_matrix4, 16, 6*16*sizeof(uint8_t));
+    memset(h->pps.scaling_matrix8, 16, 2*64*sizeof(uint8_t));
 }
 
 static int decode_init(AVCodecContext *avctx){