--- mbtransquant.c 2002/09/21 03:07:56 1.13 +++ mbtransquant.c 2002/10/19 12:20:33 1.18 @@ -3,8 +3,10 @@ * XVID MPEG-4 VIDEO CODEC * - MacroBlock transfer and quantization - * - * Copyright(C) 2002-2001 Michael Militzer + * Copyright(C) 2002-2001 Christoph Lampert + * 2002-2001 Michael Militzer * 2002-2001 Peter Ross + * 2002 Daniel Smith * * This program is an implementation of a part of one or more MPEG-4 * Video tools as specified in ISO/IEC 14496-2 standard. Those intending @@ -29,7 +31,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.13 2002/09/21 03:07:56 suxen_drol Exp $ + * $Id: mbtransquant.c,v 1.18 2002/10/19 12:20:33 edgomez Exp $ * ****************************************************************************/ @@ -364,8 +366,8 @@ MBQuantIntra(const MBParam * pParam, FRAMEINFO * frame, MACROBLOCK *pMB, - int16_t qcoeff[6 * 64], - int16_t data[6*64]) + int16_t data[6 * 64], + int16_t qcoeff[6 * 64]) { int i; int iQuant = frame->quant; @@ -598,11 +600,11 @@ } } - if (frame > field) { + if (frame > (field + 350)) { MBFrameToField(data); } - return (frame > field); + return (frame > (field + 350)); }