changeset 152:561ec01a1a78 libavcodec

QP_store==null bugfix and no opendivx bugfix
author michael
date Sun, 11 Nov 2001 01:18:40 +0000
parents ae0516eadae2
children acbd3bc999b3
files libpostproc/postprocess.c libpostproc/postprocess_template.c
diffstat 2 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpostproc/postprocess.c	Sat Nov 10 14:36:12 2001 +0000
+++ b/libpostproc/postprocess.c	Sun Nov 11 01:18:40 2001 +0000
@@ -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
@@ -2823,6 +2831,13 @@
 		 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 function call...
--- a/libpostproc/postprocess_template.c	Sat Nov 10 14:36:12 2001 +0000
+++ b/libpostproc/postprocess_template.c	Sun Nov 11 01:18:40 2001 +0000
@@ -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
@@ -2823,6 +2831,13 @@
 		 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 function call...