# HG changeset patch # User michael # Date 1005441520 0 # Node ID 561ec01a1a7861127f6a7e3951c9ba494e7931ec # Parent ae0516eadae2facde0b8b28c97855593f3d20424 QP_store==null bugfix and no opendivx bugfix diff -r ae0516eadae2 -r 561ec01a1a78 libpostproc/postprocess.c --- 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... diff -r ae0516eadae2 -r 561ec01a1a78 libpostproc/postprocess_template.c --- 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...