# HG changeset patch # User lorenm # Date 1130299086 0 # Node ID 1443b4d3f4ab801951ff5a707f768b2a6877d6d6 # Parent 71ca5ed04789889b249273030cb3ccc9152f2e1a 10l: cqm weren't initialized in svq3. diff -r 71ca5ed04789 -r 1443b4d3f4ab h264.c --- 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){