--- decoder.c 2002/12/29 16:59:50 1.37.2.24 +++ decoder.c 2003/01/04 06:14:32 1.37.2.26 @@ -55,7 +55,7 @@ * 22.12.2001 lock based interpolation * 01.12.2001 inital version; (c)2001 peter ross * - * $Id: decoder.c,v 1.37.2.24 2002/12/29 16:59:50 suxen_drol Exp $ + * $Id: decoder.c,v 1.37.2.26 2003/01/04 06:14:32 suxen_drol Exp $ * *************************************************************************/ @@ -68,6 +68,7 @@ #include "xvid.h" #include "portab.h" +#include "global.h" #include "decoder.h" #include "bitstream/bitstream.h" @@ -384,10 +385,6 @@ - -#define SIGN(X) (((X)>0)?1:-1) -#define ABS(X) (((X)>0)?(X):-(X)) - // decode an inter macroblock void @@ -1705,6 +1702,7 @@ if (vop_type == - 1) { if (success) goto done; + emms(); return XVID_ERR_FAIL; } @@ -1725,6 +1723,7 @@ stats->data.vol.par_width = dec->par_width; stats->data.vol.par_height = dec->par_height; frame->length = BitstreamPos(&bs) / 8; + emms(); return XVID_ERR_OK; } goto repeat;