[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.159,1.160

Loren Merritt CVS lorenm
Wed Oct 26 05:58:08 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv9319

Modified Files:
	h264.c 
Log Message:
10l: cqm weren't initialized in svq3.


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- h264.c	25 Oct 2005 01:17:19 -0000	1.159
+++ h264.c	26 Oct 2005 03:58:06 -0000	1.160
@@ -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){





More information about the ffmpeg-cvslog mailing list