--- mbtransquant.c 2004/12/05 13:56:13 1.26 +++ mbtransquant.c 2005/05/23 09:29:43 1.28 @@ -21,7 +21,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: mbtransquant.c,v 1.26 2004/12/05 13:56:13 syskin Exp $ + * $Id: mbtransquant.c,v 1.28 2005/05/23 09:29:43 Skal Exp $ * ****************************************************************************/ @@ -216,7 +216,7 @@ sum = quant[mpeg](&qcoeff[i*64], &data[i*64], pMB->quant, pParam->mpeg_quant_matrices); - if(sum && (frame->vop_flags & XVID_VOP_TRELLISQUANT)) { + if(sum && (pMB->quant > 2) && (frame->vop_flags & XVID_VOP_TRELLISQUANT)) { const uint16_t *matrix; const static uint16_t h263matrix[] = { @@ -774,7 +774,7 @@ * helps. */ typedef struct { int16_t Run, Level; } NODE; - NODE Nodes[65], Last; + NODE Nodes[65], Last = { 0, 0}; uint32_t Run_Costs0[64+1]; uint32_t * const Run_Costs = Run_Costs0 + 1;