[Mplayer-cvslog] CVS: main/postproc postprocess.c,1.37,1.38

Michael Niedermayer michael at mplayer.dev.hu
Sun Nov 11 02:18:42 CET 2001


Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv29218

Modified Files:
	postprocess.c 
Log Message:
QP_store==null bugfix and no opendivx bugfix


Index: postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- postprocess.c	9 Nov 2001 02:17:02 -0000	1.37
+++ postprocess.c	11 Nov 2001 01:18:40 -0000	1.38
@@ -2750,12 +2750,14 @@
 		ppMode.error += numOfUnknownOptions;
 	}
 
+#ifdef HAVE_ODIVX_POSTPROCESS
 	if(ppMode.lumMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_H;
 	if(ppMode.lumMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_V;
 	if(ppMode.chromMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_H;
 	if(ppMode.chromMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_V;
 	if(ppMode.lumMode & DERING) ppMode.oldMode |= PP_DERING_Y;
 	if(ppMode.chromMode & DERING) ppMode.oldMode |= PP_DERING_C;
+#endif
 
 	return ppMode;
 }
@@ -2781,6 +2783,12 @@
 
 	return;
 */
+	static QP_STORE_T zeroArray[2048/8];
+	if(QP_store==NULL)
+	{
+		QP_store= zeroArray;
+		QP_stride= 0;
+	}
 
 #ifdef HAVE_ODIVX_POSTPROCESS
 // Note: I could make this shit outside of this file, but it would mean one
@@ -2822,6 +2830,13 @@
                  QP_STORE_T *QP_store,  int QP_stride,
 		 struct PPMode *mode)
 {
+
+	static QP_STORE_T zeroArray[2048/8];
+	if(QP_store==NULL)
+	{
+		QP_store= zeroArray;
+		QP_stride= 0;
+	}
 
 #ifdef HAVE_ODIVX_POSTPROCESS
 // Note: I could make this shit outside of this file, but it would mean one




More information about the MPlayer-cvslog mailing list