# HG changeset patch # User michael # Date 1005441520 0 # Node ID a78ac799a30023340bbb9654a7b4d2cdaf1729f7 # Parent cfc61eef5a6676c7682c39dce561e7a4d7725c5b QP_store==null bugfix and no opendivx bugfix diff -r cfc61eef5a66 -r a78ac799a300 postproc/postprocess.c --- a/postproc/postprocess.c Sun Nov 11 01:14:09 2001 +0000 +++ b/postproc/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... diff -r cfc61eef5a66 -r a78ac799a300 postproc/postprocess_template.c --- a/postproc/postprocess_template.c Sun Nov 11 01:14:09 2001 +0000 +++ b/postproc/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...